New ASTMatchers and enhancement to hasOverloadedOperatorName
Added two new narrowing matchers: * hasMethod: aplies a matcher to a CXXRecordDecl's methods until a match is made or there are no more methods. * hasCanonicalType: applies a matcher to a QualType's canonicalType. Enhanced hasOverloadedOperatorName to work on CXXMethodDecl as well as CXXOperatorCallExpr. Updated tests and docs. Reviewers: klimek, gribozavr git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176556 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 58 additions, 7 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 55 additions, 9 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- include/clang/ASTMatchers/ASTMatchersInternal.h 38 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchersInternal.h
- unittests/ASTMatchers/ASTMatchersTest.cpp 25 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
Loading
Please register or sign in to comment