From 872c95c26f390004d3c9875f69705702539aef89 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 29 Sep 2015 13:20:26 +0000 Subject: [PATCH] Hopefully silencing some built bot warnings. Note, this should be unsigned long instead of unsigned int, but then *other* builds start to fail because of duplicate redefinitions of size_t. llvm-svn: 248792 --- .../test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp | 2 ++ clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp index 992c2fdf9ed7..48b0578927d2 100644 --- a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp @@ -1,5 +1,7 @@ // RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14 -fsized-deallocation +typedef unsigned int size_t; + struct S { // CHECK-MESSAGES: :[[@LINE+1]]:8: warning: declaration of 'operator delete' has no matching declaration of 'operator new' at the same scope [misc-new-delete-overloads] void operator delete(void *ptr, size_t) noexcept; // not a placement delete diff --git a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp index 6bb73c7c433c..b0dcbda36f2f 100644 --- a/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp +++ b/clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp @@ -1,5 +1,7 @@ // RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14 +typedef unsigned int size_t; + struct S { // CHECK-MESSAGES: :[[@LINE+1]]:9: warning: declaration of 'operator new' has no matching declaration of 'operator delete' at the same scope [misc-new-delete-overloads] void *operator new(size_t size) noexcept;