Alexander Kornienko
9f58fe08bf
Remove deprecated methods ast_matchers::BoundNodes::{getStmtAs,getDeclAs}
...
llvm-svn: 289542
2016-12-13 16:19:19 +00:00
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
Piotr Padlewski
e93a73fb7a
[ASTMatchers] Added ignoringParenImpCasts to has matchers
...
has matcher changed behaviour, and now it matches "as is" and
doesn't skip implicit and paren casts
http://reviews.llvm.org/D20801
llvm-svn: 271289
2016-05-31 15:26:56 +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
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
Alexander Kornienko
50d7f4617f
[clang-tidy] Move user-defined matches to unnamed namespaces to prevent ODR violations.
...
llvm-svn: 239904
2015-06-17 13:11:37 +00:00
Alexander Kornienko
bdaa681fc6
[clang-tidy] Treat all types with non-trivial destructors as RAII.
...
This solves some false negatives at a cost of adding some false positives that
can be fixed easily and (almost) automatically.
llvm-svn: 237120
2015-05-12 12:17:20 +00:00
Alexander Kornienko
5b982e539d
[clang-tidy] Refactor: Rename clang-tidy misc check files and classes to follow naming conventions
...
Classes are named WhateverCheck, files are named WhateverCheck.cpp and
WhateverCheck.h.
http://reviews.llvm.org/D8145
Patch by Richard Thomson!
llvm-svn: 231648
2015-03-09 11:48:54 +00:00