]> granicus.if.org Git - clang/commit
Support in hasDeclaration for types with getDecl()
authorEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 14:32:42 +0000 (14:32 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 14:32:42 +0000 (14:32 +0000)
commitb45083d08377a8b9528401fdafd7210e78895dbe
tree676d53c5fb9180d0d480c839175f46458bc3c40b
parent1b354b868c1aa227619d81e299fe6e384e1999b7
Support in hasDeclaration for types with getDecl()

Re-introducing r175532. The has_getDecl metafunction didn't compile with
Visual Studio. This revision uses 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@176024 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchersInternal.h
unittests/ASTMatchers/ASTMatchersTest.cpp