]> granicus.if.org Git - clang/commit
Adding hasDeclaration overload for TemplateSpecializationType
authorEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 14:49:29 +0000 (14:49 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Mon, 25 Feb 2013 14:49:29 +0000 (14:49 +0000)
commit3abf77872ca6c520903f9174cf6cd89a50df2714
tree6efcd46148dbf526dc06f3ae18aa3bb6d2d2f2cc
parentb45083d08377a8b9528401fdafd7210e78895dbe
Adding hasDeclaration overload for TemplateSpecializationType

TemplateSpecializationType doesn't quite have getDecl(). Need to go
through TemplateName to get a TemplateDecl.

Added test cases for the hasDeclaration() overload for
TemplateSpecializationType. Also introduced the type matcher
templateSpecializationType() used by the new hasDeclaration() test case.

Updated LibASTMatchersReference.

Reviewers: klimek

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