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
This commit is contained in:
Aaron Ballman 2015-09-29 13:20:26 +00:00
parent de34985caa
commit 872c95c26f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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;