Craig Topper
45857d4b58
Make a bunch of static arrays const.
...
llvm-svn: 250641
2015-10-18 05:14:41 +00:00
Angel Garcia Gomez
2df36481b6
Prevent modernize-use-auto from emitting a warning when 'auto' was already being used.
...
Summary: This fixes https://llvm.org/bugs/show_bug.cgi?id=25082 .
Reviewers: bkramer, klimek
Subscribers: cfe-commits, alexfh
Differential Revision: http://reviews.llvm.org/D13504
llvm-svn: 250284
2015-10-14 09:29:55 +00:00
Aaron Ballman
b9ea09c445
Refactors AST matching code to use the new AST matcher names. This patch correlates to r247885 which performs the AST matcher rename in Clang.
...
llvm-svn: 247886
2015-09-17 13:31:25 +00:00
Angel Garcia Gomez
e6035de11e
Fix use-auto-check.
...
Summary: Fix a bug where use-auto check would crash when the definition of a type is in the same statement than its instantiation with new.
Reviewers: alexfh
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D12551
llvm-svn: 246638
2015-09-02 10:20:00 +00:00
Aaron Ballman
8b0583ef1b
Disable several more clang-tidy modernize checkers when not compiling in C++ mode. Loop conversion would make recommendations for C code, so added a test to ensure that does not happen. The pass by value, use auto and replace auto_ptr checkers would not make recommendations for C code, and are disabled for performance reasons, but do not require an extra test.
...
llvm-svn: 246310
2015-08-28 17:58:10 +00:00
Angel Garcia Gomez
5b9d33a5a1
[clang-tidy] Migrate UseAuto from clang-modernize to clang-tidy.
...
http://reviews.llvm.org/D12231
llvm-svn: 245703
2015-08-21 15:08:51 +00:00