Alexander Kornienko
32032f5e64
[clang-tidy] Fix a crash in misc-new-delete-overloads
...
llvm-svn: 255758
2015-12-16 10:58:14 +00:00
Manuel Klimek
8f9e444061
Switch check_clang_tidy to argparse and add a -resource-dir argument.
...
-resource-dir can be used to inject non-standard resource dirs via the
lit site config.
llvm-svn: 251021
2015-10-22 14:54:50 +00:00
Manuel Klimek
b91bee06de
Add %check_clang_tidy and %clang_tidy_diff.
...
With this, site specific lit configs can inject parameters into the
test scripts if they need site specific parameters.
Next up: enable check_clang_tidy to take a resource dir to enable
non-standard locations for builtin includes.
llvm-svn: 251010
2015-10-22 11:31:44 +00:00
Aaron Ballman
0f28d62a12
Some of the build bots are unhappy about the overload of the global operator new() because it was accidentally marked noexcept instead of noexcept(false). This should correct those bots.
...
llvm-svn: 248797
2015-09-29 14:26:00 +00:00
Aaron Ballman
5edd83de91
Silencing bot failures a more creative and definitive way.
...
llvm-svn: 248794
2015-09-29 13:38:00 +00:00
Aaron Ballman
872c95c26f
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
2015-09-29 13:20:26 +00:00
Aaron Ballman
de34985caa
Adding a checker (misc-new-delete-overloads) that detects mismatched overloads of operator new and operator delete. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/DCL54-CPP.+Overload+allocation+and+deallocation+functions+as+a+pair+in+the+same+scope
...
llvm-svn: 248791
2015-09-29 13:12:21 +00:00