Malcolm Parsons
4ca3d18b96
[ASTMatchers] Add hasInClassInitializer traversal matcher for FieldDecl.
...
Summary:
I needed to know whether a FieldDecl had an in-class
initializer for D26453. I used a narrowing matcher there, but a
traversal matcher might be generally useful.
Reviewers: sbenza, bkramer, klimek, aaron.ballman
Subscribers: aaron.ballman, Prazek, cfe-commits
Differential Revision: https://reviews.llvm.org/D28034
llvm-svn: 290492
2016-12-24 13:35:14 +00:00
Haojian Wu
398a8eaf33
[ASTMatcher] Clarify isStaticStorageClass and hasStaticStorageDuration documents.
...
Reviewers: aaron.ballman
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D24928
llvm-svn: 282474
2016-09-27 07:53:20 +00:00
Haojian Wu
b3d2546c43
[ASTMatcher] Add isStaticStorageClass matcher for varDecl and functionDecl.
...
Reviewers: klimek
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D24821
llvm-svn: 282415
2016-09-26 16:01:52 +00:00
Aaron Ballman
a086b9fd15
Add an AST matcher for external formal linkage.
...
Patch by Visoiu Mistrih
llvm-svn: 278926
2016-08-17 13:10:42 +00:00
Benjamin Kramer
87e6d99487
Make isExternC work on VarDecls too.
...
llvm-svn: 277712
2016-08-04 10:02:03 +00:00
Clement Courbet
425175934e
[ASTMatchers] isSignedInteger() and isUnsignedInteger()
...
Complementary to isInteger(), these match signed and unsigned integers
respectively.
Review: http://reviews.llvm.org/D21989
llvm-svn: 275157
2016-07-12 06:36:00 +00:00
Aaron Ballman
5c574341f5
Add AST matchers for handling bit-fields and narrowing based on their width.
...
llvm-svn: 274652
2016-07-06 18:25:16 +00:00
Samuel Benzaquen
49385c78bc
[ASTMatchers] Add isLambda() matcher.
...
llvm-svn: 274015
2016-06-28 14:08:56 +00:00
Aaron Ballman
230ad97156
Make isNoThrow and hasDynamicExceptionSpec polymorphic so they can be used with both functionDecl and functionPrototype matchers.
...
Patch by Don Hinton.
llvm-svn: 272028
2016-06-07 17:34:45 +00:00
Piotr Padlewski
c6e0502997
Dividied ASTMatcherTests into 4 files
...
fix for long compilation [20061]
http://reviews.llvm.org/D20210
llvm-svn: 269802
2016-05-17 19:22:57 +00:00