Support in hasDeclaration for types with getDecl()
authorEdwin Vane <edwin.vane@intel.com>
Tue, 19 Feb 2013 17:14:34 +0000 (17:14 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Tue, 19 Feb 2013 17:14:34 +0000 (17:14 +0000)
commit2c197e09397ee071c678ba77c2451166264b55f7
tree44ab43b33501f733618bd7aa7c9d73f02785c67b
parent1c040b57885e360149b2d3cf317570a3a6effa08
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
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp