#
75e52725 |
| 13-May-2016 |
Etienne Bergeron <etienneb@google.com> |
Add an AST matcher for CastExpr kind
Summary: This AST matcher will match a given CastExpr kind. It's an narrowing matcher on CastExpr.
Reviewers: klimek, alexfh, sbenza, aaron.ballman
Subscribers
Add an AST matcher for CastExpr kind
Summary: This AST matcher will match a given CastExpr kind. It's an narrowing matcher on CastExpr.
Reviewers: klimek, alexfh, sbenza, aaron.ballman
Subscribers: Prazek, jroelofs, aaron.ballman, klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D19871
llvm-svn: 269460
show more ...
|
#
1b3f8db8 |
| 04-May-2016 |
Gabor Horvath <xazax.hun@gmail.com> |
[ASTMatchers] New matcher forFunction
Summary: Matcher proposed in the review of checker misc-assign-operator (name pending). Its goal is to find the direct enclosing function declaration of a state
[ASTMatchers] New matcher forFunction
Summary: Matcher proposed in the review of checker misc-assign-operator (name pending). Its goal is to find the direct enclosing function declaration of a statement and run the inner matcher on it. Two version is attached in this patch (thus it will not compile), to be decided which approach to take. The second one always chooses one single parent while the first one does a depth-first search upwards (thus a height-first search) and returns the first positive match of the inner matcher (thus it always returns zero or one matches, not more). Further questions: is it enough to implement it in-place, or ASTMatchersInternals or maybe ASTMatchFinder should be involved?
Reviewers: sbenza
Subscribers: aaron.ballman, klimek, o.gyorgy, xazax.hun, cfe-commits
Differential Revision: http://reviews.llvm.org/D19357
llvm-svn: 268490
show more ...
|
#
66eb58a7 |
| 14-Apr-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add typedefNameDecl() and typeAliasDecl() to the AST matchers; improves hasType() to match on TypedefNameDecl nodes.
Patch by Clement Courbet.
llvm-svn: 266331
|
#
976921d4 |
| 22-Mar-2016 |
Alexander Kornienko <alexfh@google.com> |
[ASTMatchers] New matcher hasReturnValue added
Summary: A checker (will be uploaded after this patch) needs to check implicit casts. Existing generic matcher "has" ignores implicit casts and parenth
[ASTMatchers] New matcher hasReturnValue added
Summary: A checker (will be uploaded after this patch) needs to check implicit casts. Existing generic matcher "has" ignores implicit casts and parenthesized expressions and no specific matcher for matching return value expression preexisted. The patch adds such a matcher (hasReturnValue).
Reviewers: klimek, sbenza
Subscribers: xazax.hun, klimek, cfe-commits
Patch by Ádám Balogh!
Differential Revision: http://reviews.llvm.org/D17986
llvm-svn: 264037
show more ...
|
#
a35b8fce |
| 09-Mar-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Adding new AST matchers for: addrLabelExpr, atomicExpr, binaryConditionalOperator, designatedInitExpr, designatorCountIs, hasSyntacticForm, implicitValueInitExpr, labelDecl, opaqueValueExpr, parenLis
Adding new AST matchers for: addrLabelExpr, atomicExpr, binaryConditionalOperator, designatedInitExpr, designatorCountIs, hasSyntacticForm, implicitValueInitExpr, labelDecl, opaqueValueExpr, parenListExpr, predefinedExpr, requiresZeroInitialization, and stmtExpr.
Patch by Aleksei Sidorin.
llvm-svn: 263027
show more ...
|
Revision tags: llvmorg-3.8.0, llvmorg-3.8.0-rc3 |
|
#
922bef4f |
| 22-Feb-2016 |
Samuel Benzaquen <sbenza@google.com> |
[ASTMatchers] Add matcher hasAnyName.
Summary: Add matcher hasAnyName as an optimization over anyOf(hasName(),...)
Reviewers: alexfh
Subscribers: klimek, cfe-commits
Differential Revision: http:/
[ASTMatchers] Add matcher hasAnyName.
Summary: Add matcher hasAnyName as an optimization over anyOf(hasName(),...)
Reviewers: alexfh
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D17163
llvm-svn: 261574
show more ...
|
#
eb7e5d90 |
| 18-Feb-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add an AST matcher for real floating-point types. e.g., float, double, long double, but not complex.
llvm-svn: 261221
|
#
232e63d0 |
| 16-Feb-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add a nullPointerConstant() AST matcher to handle variations of null pointer constants in one matcher.
llvm-svn: 261008
|
#
cc9df3b9 |
| 15-Feb-2016 |
Felix Berger <flx@google.com> |
Add isAnyPointer() matchers. Register missing matchers.
Summary: The isAnyPointer() matcher is useful for http://reviews.llvm.org/D15623.
Reviewers: alexfh, klimek
Subscribers: cfe-commits
Differ
Add isAnyPointer() matchers. Register missing matchers.
Summary: The isAnyPointer() matcher is useful for http://reviews.llvm.org/D15623.
Reviewers: alexfh, klimek
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D15819
llvm-svn: 260872
show more ...
|
#
880a65bb |
| 09-Feb-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Registering the gnuNullExpr AST matcher as a dynamic matcher so that it is available from clang-query.
llvm-svn: 260222
|
Revision tags: llvmorg-3.8.0-rc2 |
|
#
7e7b7b2d |
| 01-Feb-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Reapply r259210 with a fix for RegistryTest.cpp.
Patch by Richard Thomson.
llvm-svn: 259359
|
#
2b79910d |
| 29-Jan-2016 |
Hans Wennborg <hans@hanshq.net> |
Revert r259210 "Extend hasType narrowing matcher for TypedefDecls, add functionProtoType matcher for FunctionProtoType nodes, extend parameterCountIs to FunctionProtoType nodes."
It didn't pass chec
Revert r259210 "Extend hasType narrowing matcher for TypedefDecls, add functionProtoType matcher for FunctionProtoType nodes, extend parameterCountIs to FunctionProtoType nodes."
It didn't pass check-clang.
llvm-svn: 259218
show more ...
|
#
fb9d0e35 |
| 29-Jan-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Extend hasType narrowing matcher for TypedefDecls, add functionProtoType matcher for FunctionProtoType nodes, extend parameterCountIs to FunctionProtoType nodes.
Patch by Richard Thomson
llvm-svn:
Extend hasType narrowing matcher for TypedefDecls, add functionProtoType matcher for FunctionProtoType nodes, extend parameterCountIs to FunctionProtoType nodes.
Patch by Richard Thomson
llvm-svn: 259210
show more ...
|
#
31bde876 |
| 22-Jan-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add am AST matcher for isMoveAssignmentOperator.
Patch by Jonathan Coe.
llvm-svn: 258573
|
#
a415a1d0 |
| 21-Jan-2016 |
Nico Weber <nicolasweber@gmx.de> |
Add an isVirtualAsWritten AST matcher.
http://reviews.llvm.org/D16394
llvm-svn: 258415
|
#
433485f0 |
| 20-Jan-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Register the isCopyAssignmentOperator AST matcher so that it can be used dynamically.
Path by Jonathan Coe.
llvm-svn: 258341
|
#
e8295d79 |
| 20-Jan-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add AST matcher for paren expressions.
Patch by Adrian Zgorzałek.
llvm-svn: 258321
|
Revision tags: llvmorg-3.8.0-rc1 |
|
#
eb85b04c |
| 18-Jan-2016 |
Aaron Ballman <aaron@aaronballman.com> |
Add an AST matcher for checking whether a function is defaulted.
Patch by Jonathan Coe.
llvm-svn: 258072
|
#
ce28f9eb |
| 18-Jan-2016 |
Manuel Klimek <klimek@google.com> |
Add forEachArgumentWithParam AST matcher.
The new matcher allows users to provide a matcher for both the argument of a CallExpr/CxxConstructExpr a well as the ParmVarDecl of the argument.
Patch by
Add forEachArgumentWithParam AST matcher.
The new matcher allows users to provide a matcher for both the argument of a CallExpr/CxxConstructExpr a well as the ParmVarDecl of the argument.
Patch by Felix Berger.
Differential Revision: http://reviews.llvm.org/D13845
llvm-svn: 258042
show more ...
|
#
bd3232af |
| 22-Dec-2015 |
Samuel Benzaquen <sbenza@google.com> |
[ASTMatchers] Add booleanType() matcher.
llvm-svn: 256278
|
#
a60bcdab |
| 02-Dec-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add a narrowing AST matcher that matches on a FunctionDecl with a non-throwing exception specification.
llvm-svn: 254516
|
Revision tags: llvmorg-3.7.1 |
|
#
6290fc91 |
| 23-Nov-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add an AST matcher for narrowing when a type is volatile-qualified.
llvm-svn: 253882
|
Revision tags: llvmorg-3.7.1-rc2 |
|
#
8e7f00b0 |
| 18-Nov-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Re-committing r253473 after hopefully fixing the bot breakage. There was a copy-pasta issue that my local testing did not catch.
llvm-svn: 253481
|
#
81d17f2f |
| 18-Nov-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting r253473 while I investigate build bot failures.
llvm-svn: 253475
|
#
34e0bd40 |
| 18-Nov-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Adding AST matchers for VarDecl storage durations. Can now determine whether a VarDecl has automatic, static, or thread storage duration. This also updates the documentation for matchers, which appea
Adding AST matchers for VarDecl storage durations. Can now determine whether a VarDecl has automatic, static, or thread storage duration. This also updates the documentation for matchers, which appear to be missing some previous additions.
llvm-svn: 253473
show more ...
|