Revision tags: llvmorg-3.7.1-rc1 |
|
#
2cf7e803 |
| 12-Oct-2015 |
Matthias Gehre <M.Gehre@gmx.de> |
Add decayedType and hasDecayedType AST matchers
Summary: Add decayedType and hasDecayedType AST matchers
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.l
Add decayedType and hasDecayedType AST matchers
Summary: Add decayedType and hasDecayedType AST matchers
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D13639
llvm-svn: 250114
show more ...
|
#
3fd6c110 |
| 05-Oct-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Adding a narrowing AST matcher for FunctionDecl::isVariadic(), plus tests and documentation.
llvm-svn: 249321
|
#
e335f259 |
| 04-Oct-2015 |
Craig Topper <craig.topper@gmail.com> |
SourceRanges are small and trivially copyable, don't them by reference.
llvm-svn: 249259
|
#
512fb647 |
| 17-Sep-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxReco
Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects.
llvm-svn: 247885
show more ...
|
#
b85be665 |
| 11-Sep-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Fixed HasDeclarationMatcher to properly convert all types into decls where possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolve
Fixed HasDeclarationMatcher to properly convert all types into decls where possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolvedUsingTypenameDecl(). Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types. Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType.
While this may seem like a lot of unrelated changes, they all relate back to fixing HasDeclarationMatcher.
This now allows us to write a matcher like:
varDecl(hasType(namedDecl(hasName("Foo"))))
that matches code using typedefs, objc interfaces, template type parameters, injected class names, or unresolved using typenames.
llvm-svn: 247404
show more ...
|
#
6c79f352 |
| 28-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Adding an AST matcher for namespaceAliasDecl.
llvm-svn: 246322
|
Revision tags: llvmorg-3.7.0, llvmorg-3.7.0-rc4 |
|
#
f8ec454f |
| 26-Aug-2015 |
Samuel Benzaquen <sbenza@google.com> |
[ASTMatchers] Add type matcher for SubstTemplateTypeParmType.
llvm-svn: 246037
|
Revision tags: llvmorg-3.7.0-rc3 |
|
#
11825f25 |
| 18-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add AST narrowing matchers for inline and anonymous namespaces. Since the inline keyword can also be specified on a FunctionDecl, this is a polymorphic matcher.
llvm-svn: 245337
|
Revision tags: studio-1.4 |
|
#
7596bcf7 |
| 12-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Switching from an explicit loop to DeleteContainerSeconds; NFC.
llvm-svn: 244802
|
#
001f168e |
| 12-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
RangRangify some more for loops; NFC.
llvm-svn: 244792
|
#
6f6d0b6c |
| 11-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add a polymorphic AST matcher for testing whether a constructor or a conversion declaration is marked as explicit or not.
llvm-svn: 244666
|
#
ed455d40 |
| 11-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add an AST matcher to match member intializers of a CXXCtorInitializer.
llvm-svn: 244662
|
#
1ca258e6 |
| 05-Aug-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add AST matchers for narrowing constructors that are default, copy, or move constructors, as well as functionality to determine whether a ctor initializer is a base initializer.
llvm-svn: 244036
|
Revision tags: llvmorg-3.7.0-rc2 |
|
#
41143bb5 |
| 24-Jul-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add an AST matcher, isFinal(), for testing whether a method or class declaration are marked final.
llvm-svn: 243107
|
Revision tags: llvmorg-3.7.0-rc1 |
|
#
3991846c |
| 15-Jul-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Add the ability to AST match a variable declaration that is an exception variable.
llvm-svn: 242303
|
#
9b869aa4 |
| 02-Jul-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Implement an AST matcher for C++ exception catch handlers that can catch any exception type (...).
llvm-svn: 241256
|
Revision tags: llvmorg-3.6.2, llvmorg-3.6.2-rc1 |
|
#
8423df92 |
| 05-Jun-2015 |
David Majnemer <david.majnemer@gmail.com> |
Move a test from static-assert.cpp to DeclPrinterTest
It's better not to rely on the diagnostics engine to pretty print the argument to decltype. Instead, exercise the functionality in DeclPrinterT
Move a test from static-assert.cpp to DeclPrinterTest
It's better not to rely on the diagnostics engine to pretty print the argument to decltype. Instead, exercise the functionality in DeclPrinterTest.
llvm-svn: 239197
show more ...
|
Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
#
025f6b19 |
| 20-Apr-2015 |
Samuel Benzaquen <sbenza@google.com> |
Add conversionDecl matcher for node CXXConversionDecl.
llvm-svn: 235348
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
#
bfa43572 |
| 12-Mar-2015 |
Manuel Klimek <klimek@google.com> |
Add support for a few Objective-C matchers.
Add some matchers for Objective-C selectors and messages to ASTMatchers.h. Minor mods to ASTMatchersTest.h to allow test files with ".m" extension in addi
Add support for a few Objective-C matchers.
Add some matchers for Objective-C selectors and messages to ASTMatchers.h. Minor mods to ASTMatchersTest.h to allow test files with ".m" extension in addition to ".cpp". New tests added to ASTMatchersTest.c.
Patch by Dean Sutherland.
llvm-svn: 232051
show more ...
|
#
e9f931f9 |
| 12-Mar-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting r232034, as it broke one of the bots with link errors. Details at: http://bb.pgr.jp/builders/ninja-clang-x64-mingw64-RA/builds/6352/steps/build/logs/stdio
llvm-svn: 232038
|
#
12865302 |
| 12-Mar-2015 |
Aaron Ballman <aaron@aaronballman.com> |
Added some matchers for objective c selectors and messages to ASTMatchers.h. Minor mods to ASTMatchersTest.h to allow test files with ".m" extension in addition to ".cpp". New tests added to ASTMatch
Added some matchers for objective c selectors and messages to ASTMatchers.h. Minor mods to ASTMatchersTest.h to allow test files with ".m" extension in addition to ".cpp". New tests added to ASTMatchersTest.c.
Patch by Dean Sutherland, reviewed by Manuel Klimek. From http://reviews.llvm.org/D7710
llvm-svn: 232034
show more ...
|
Revision tags: llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3 |
|
#
ef621f43 |
| 10-Feb-2015 |
Samuel Benzaquen <sbenza@google.com> |
Add translationUnitDecl matcher.
Summary: Add translationUnitDecl matcher.
Reviewers: alexfh
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D7512
llvm-svn: 228694
|
Revision tags: llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2 |
|
#
b405c08b |
| 15-Dec-2014 |
Samuel Benzaquen <sbenza@google.com> |
Add voidType() matcher.
Summary: Add voidType() matcher.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6656
llvm-svn: 224250
|
Revision tags: llvmorg-3.5.1-rc1 |
|
#
d3aa1f4a |
| 25-Nov-2014 |
Manuel Klimek <klimek@google.com> |
Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName
Change to original: ifndef out tests in Windows due to /-separated p
Re-apply r222646 (was reverted in r222667). Adding 4 ASTMatchers: typedefDecl, isInMainFile, isInSystemFile, isInFileMatchingName
Change to original: ifndef out tests in Windows due to /-separated paths.
Summary: Often one is only interested in matches within the main-file or matches that are not within a system-header, for which this patch adds isInMainFile and isInSystemFile. They take no arguments and narrow down the matches.
The isInFileMatchingName is mainly thought for interactive clang-query-sessions, to make a matcher more specific without restarting the session with the files you are interested in for that moment. It takes a string that will be used as regular-expression to match the filename of where the matched node is expanded.
Patch by Hendrik von Prince.
llvm-svn: 222765
show more ...
|
#
6265102c |
| 24-Nov-2014 |
Aaron Ballman <aaron@aaronballman.com> |
Reverting r222646; the tests do not pass on Windows. Also reverts r222664, which was required for r222646 to compile with Visual Studio 2012.
llvm-svn: 222667
|