Adding hasDeclaration overload for TemplateSpecializationType
TemplateSpecializationType doesn't quite have getDecl(). Need to go through TemplateName to get a TemplateDecl. Added test cases for the hasDeclaration() overload for TemplateSpecializationType. Also introduced the type matcher templateSpecializationType() used by the new hasDeclaration() test case. Updated LibASTMatchersReference. Reviewers: klimek git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176025 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 64 additions, 15 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 17 additions, 1 deletioninclude/clang/ASTMatchers/ASTMatchers.h
- include/clang/ASTMatchers/ASTMatchersInternal.h 9 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchersInternal.h
- unittests/ASTMatchers/ASTMatchersTest.cpp 11 additions, 0 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
Loading
Please register or sign in to comment