summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers
Commit message (Collapse)AuthorAgeFilesLines
...
* [ms-inline asm] Add various MC components to clang build to support MS-style ↵Chad Rosier2012-08-091-0/+7
| | | | | | inline assembly. llvm-svn: 161594
* Add various MC components to clang build to support MS-style inline assembly.Chad Rosier2012-08-081-1/+2
| | | | llvm-svn: 161498
* Add missing tests for class template specialization and templateDaniel Jasper2012-08-011-0/+40
| | | | | | argument matchers. llvm-svn: 161102
* Fix for ASTMatchFinder to visit a functions parameter declarations.Daniel Jasper2012-07-301-0/+6
| | | | llvm-svn: 160947
* Introduces the 'decl' matcher which was missing for a whileManuel Klimek2012-07-251-1/+14
| | | | | | | | | and became necessary with the change to require BindableMatchers for binding. Also fixes PR 13445: "hasSourceExpression only works for implicit casts". llvm-svn: 160716
* Introduces a new concept for binding results to matchersManuel Klimek2012-07-241-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | as per Chandler's request: - introduces a new matcher base type BindableMatcher that provides the bind() call - makes all dynamic-cast matcher creation functions return BindableMatchers; the special case about dynamic-cast matchers is that the node they match on and the node their child matchers match on are the same node, just casted to a different type; thus, there is no ambiguity on what bind() matches on; additionally, those are the matchers that we name with nouns in the matcher language, so it's easy for users to intuitively know which matchers are bindable To make this change possible, we got rid of a non-orthogonal implementation of thisPointerType, which had an implicit dynamic-cast matcher from CallExpr to CXXMemberCallExpr; as alternative, we now provide a memberCall dynamic-cast matcher and thisPointerType is a predicate on CXXMemberCallExpr. Last, the ArgumentAdaptingMatcher is actually not required for the implementation of makeDynCastAllOfComposite - this simplification makes it more obvious where the bind() call can be used based on the matcher creation function types. llvm-svn: 160673
* Move RefactoringCallbacks to Tooling to avoid dependency fromDaniel Jasper2012-07-172-100/+1
| | | | | | | ASTMatchers (lower level abstraction) to Tooling (higher level abstraction). llvm-svn: 160351
* Make the isDerivedFrom matcher more generic.Daniel Jasper2012-07-171-2/+12
| | | | | | | It now accepts an arbitrary inner matcher but is fully backwards compatible. llvm-svn: 160348
* Add refactoring callbacks to make common kinds of refactorings easy.Daniel Jasper2012-07-162-1/+100
| | | | llvm-svn: 160255
* Fix spelling of anyOf matcher and add missing test.Daniel Jasper2012-07-151-3/+6
| | | | | | Patch by Sam Panzer! llvm-svn: 160233
* This commit combines three patches to the ASTMatchers.Daniel Jasper2012-07-121-5/+47
| | | | | | | | | | | | | | One adds matchers for the various parts of a for loop (initializer, condition, increment), as well as extending the hasBody matcher to work for while and do-while loops. The second patch adds an isInteger matcher for types. The third patch fixes a bug in allOf, where a few of the name chages (AllOf --> allOf) had been missed. All matchers come with unit tests. Patches by Sam Panzer! llvm-svn: 160115
* Add more matchers and do cleanups.Daniel Jasper2012-07-101-22/+230
| | | | | | | | Reviewers: klimek Differential Revision: http://ec2-50-18-127-156.us-west-1.compute.amazonaws.com/D2 llvm-svn: 160013
* Disable death tests on platforms which don't support them.Benjamin Kramer2012-07-101-0/+2
| | | | llvm-svn: 160000
* Fixes the MSVC build.Manuel Klimek2012-07-101-0/+8
| | | | llvm-svn: 159992
* Another fix for the configure build: correct order of dependencies.Manuel Klimek2012-07-061-2/+2
| | | | llvm-svn: 159809
* Build-fix: Remove non-existent directories from Makefiles.Manuel Klimek2012-07-061-2/+1
| | | | llvm-svn: 159807
* Adds the AST Matcher library, which provides a in-C++ DSL to expressManuel Klimek2012-07-064-0/+2131
matches on interesting parts of the AST, and callback mechanisms to act on them. llvm-svn: 159805
OpenPOWER on IntegriCloud