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 llvm-svn: 175532
Showing
- clang/docs/LibASTMatchersReference.html 38 additions, 15 deletionsclang/docs/LibASTMatchersReference.html
- clang/include/clang/ASTMatchers/ASTMatchers.h 5 additions, 8 deletionsclang/include/clang/ASTMatchers/ASTMatchers.h
- clang/include/clang/ASTMatchers/ASTMatchersInternal.h 21 additions, 0 deletionsclang/include/clang/ASTMatchers/ASTMatchersInternal.h
- clang/unittests/ASTMatchers/ASTMatchersTest.cpp 8 additions, 4 deletionsclang/unittests/ASTMatchers/ASTMatchersTest.cpp
Loading
Please register or sign in to comment