Kirill Bobyrev
11cea45cce
[clang-tidy] remove trailing whitespaces and retab
...
llvm-svn: 277340
2016-08-01 12:06:18 +00:00
Alexander Kornienko
5d08bb72d9
[clang-tidy] Switch to a more common way of customizing check behavior.
...
This should have been done this way from the start, however I somehow missed
r257177.
llvm-svn: 270215
2016-05-20 13:42:40 +00:00
Felix Berger
99a0dddb3a
[clang-tidy] MoveConstructorInitCheck - Add parameter name to check message.
...
Reviewers: alexfh
Subscribers: aaron.ballman, cfe-commits
Differential Revision: http://reviews.llvm.org/D19849
llvm-svn: 268461
2016-05-03 23:07:44 +00:00
Etienne Bergeron
2a4c00f243
[clang-tidy] Cleanup namespace in utils folder.
...
Summary:
This is a step forward cleaning up the namespaces in clang-tidy/utils.
There is no behavior change.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D19819
llvm-svn: 268356
2016-05-03 02:54:05 +00:00
Etienne Bergeron
456177b98f
[clang-tidy] Cleaning namespaces to be more consistant across checkers.
...
Summary:
The goal of the patch is to bring checkers in their appropriate namespace.
This path doesn't change any behavior.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D19811
llvm-svn: 268264
2016-05-02 18:00:29 +00:00
Aaron Ballman
c00ad6c5fb
Disable part of the misc-move-constructor-init checker when the check is enabled through cert-oop11-cpp. The CERT guideline does not cover moveable parameters as part of the OOP11-CPP recommendation, just copy construction from move constructors.
...
llvm-svn: 257177
2016-01-08 15:50:51 +00:00
Aaron Ballman
fc4e042bf5
Improved the misc-move-constructor-init check to identify arguments that are passed by value but copy assigned to class data members when the non-deleted move constructor is a better fit.
...
Patch by Felix Berger!
llvm-svn: 249429
2015-10-06 16:27:03 +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
Aaron Ballman
bf89109013
Using an early return as it is more clear; NFC.
...
llvm-svn: 246447
2015-08-31 15:28:57 +00:00
Aaron Ballman
327e97bb37
Disable clang-tidy misc checkers when not compiling in C++ mode. Many of the checkers do not require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct.
...
llvm-svn: 246318
2015-08-28 19:27:19 +00:00
Aaron Ballman
9392ced263
Add a new clang-tidy check (misc-move-constructor-init) that diagnoses move constructor initializations that call copy constructors instead of move constructors.
...
llvm-svn: 245571
2015-08-20 15:52:52 +00:00