]> granicus.if.org Git - clang/commit
Fix refersToDeclaration()-matcher and add missing test case. This was
authorDaniel Jasper <djasper@google.com>
Sat, 29 Sep 2012 15:55:18 +0000 (15:55 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 29 Sep 2012 15:55:18 +0000 (15:55 +0000)
commitaaa8e45b8e392a1f1b7498e2f00c6ed66d41119a
treef3a6f4e6fa0a51f082389a0c523fe7219e1f78a8
parent1952354bd376062c3ab3d328c0fc6c36530c9309
Fix refersToDeclaration()-matcher and add missing test case. This was
broken as of r164656 as TemplateArgument::getAsDecl() now asserts
instead of returning NULL for other template arugment kinds.

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