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)
commitf901b719214d0bd4d42d85e9b5bbbc95d1ee3479
tree662b1c8fc2a683ef80574b64b891f01f92ab435b
parented936457393fa19d86bd9223f815b8cead44e20d
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
llvm-svn: 176025
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/unittests/ASTMatchers/ASTMatchersTest.cpp