Support in hasDeclaration for types with getDecl()
Using a new metafunction for detecting the presence of the member 'getDecl' in a type T, added support to hasDeclaration for any such type T. This allows hasDecl() to be replaced and enables several other subclasses of clang::Type to use hasDeclaration. Updated unittests and LibASTMatchersReference.html. Reviewers: klimek git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175532 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/LibASTMatchersReference.html 38 additions, 15 deletionsdocs/LibASTMatchersReference.html
- include/clang/ASTMatchers/ASTMatchers.h 5 additions, 8 deletionsinclude/clang/ASTMatchers/ASTMatchers.h
- include/clang/ASTMatchers/ASTMatchersInternal.h 21 additions, 0 deletionsinclude/clang/ASTMatchers/ASTMatchersInternal.h
- unittests/ASTMatchers/ASTMatchersTest.cpp 8 additions, 4 deletionsunittests/ASTMatchers/ASTMatchersTest.cpp
Please register or sign in to comment