hanchenye-llvm-project/clang/lib/ASTMatchers
Daniel Jasper 83dafaf3db Fix isDerivedFrom matcher.
Without this patch, the isDerivedFrom matcher asserts in the
"assert(ClassDecl != NULL);" in the new test, as a
DependentTemplateSpecilizationType is not a sub-type of
TemplateSpecializationType and also does not offer getAsCXXRecordDecl().

I am not sure why this did not cause problems before. It is now (after
the changed implementation of isDerivedFrom) easier to write a matcher
that actually gets into this branch of the code.

llvm-svn: 164127
2012-09-18 14:17:42 +00:00
..
ASTMatchFinder.cpp Fix isDerivedFrom matcher. 2012-09-18 14:17:42 +00:00
ASTMatchersInternal.cpp Fixes a bug for binding memoized match results. 2012-08-30 19:41:06 +00:00
CMakeLists.txt Move RefactoringCallbacks to Tooling to avoid dependency from 2012-07-17 08:03:01 +00:00
Makefile