Gabor Horvath
afad84c04b
[clang-tidy] Cleaning up language options.
...
Differential Revision: https://reviews.llvm.org/D24881
llvm-svn: 282319
2016-09-24 02:13:45 +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
Benjamin Kramer
a62e223281
[clang-tidy] Remove unnecessary getName() on Decls and Types feeding into a DiagnosticBuilder
...
Going through a string removes some of the smarts of the diagnosic printer
and makes the code more complicated. This change has some cosmetic impact
on the output but that's mostly minor.
llvm-svn: 265680
2016-04-07 14:55: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
ed5e4ef853
Updated to make use of the AST matcher instead of a custom matcher; NFC.
...
llvm-svn: 246325
2015-08-28 19:40:30 +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
Alexander Kornienko
2644cae3d5
[clang-tidy] Improve the misc-unused-alias-decl message
...
"this namespace alias decl is unused" -> "namespace alias decl '...' is unused"
llvm-svn: 243906
2015-08-03 22:02:08 +00:00
Daniel Jasper
cf452e5501
Replace callback-if with isExpansionInMainFile as suggested in post
...
commit review.
llvm-svn: 243871
2015-08-03 10:52:27 +00:00
Daniel Jasper
bb42b03021
Add misc-unused-alias-decls check that currently finds unused namespace
...
alias declarations. In the future, we might want to reuse it to also
fine unsed using declarations and such.
llvm-svn: 243754
2015-07-31 16:08:10 +00:00