]> granicus.if.org Git - clang/commit
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)
commit523806028d812a7f29636c59a8bc0e7e3d3fd9ae
tree7edb63f1490da1e00927ecd3bc73cd0640f8cc6e
parent3b41a100a65e05309dbfdad65e2f79439fdaf4c0
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
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp