]> granicus.if.org Git - clang/commit
Support in hasDeclaration for types with getDecl()
authorEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 13:59:06 +0000 (13:59 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 13:59:06 +0000 (13:59 +0000)
commit0b6f23a23c55b7024e7a0edca1fecf9bd4c380a1
tree7e8f866688772164283d3960c1746856d1f8cb7a
parentc7093d96d1fac7f34acd2b63bca4ea39acb5cad5
Support in hasDeclaration for types with getDecl()

Re-introducing r175532. The has_getDecl metafunction didn't compile with Visual
Studio. This revision approaches has_getDecl from a different angle that isn't
a problem for Visual Studio.

Added dedicated tests for the metafunction.

Reviewers: klimek

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176019 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp