Fix crash when encountering alias templates in isDerivedFrom matches.
authorManuel Klimek <klimek@google.com>
Fri, 2 Aug 2013 21:24:09 +0000 (21:24 +0000)
committerManuel Klimek <klimek@google.com>
Fri, 2 Aug 2013 21:24:09 +0000 (21:24 +0000)
commit1863e505ce36530596610f80934b86312aad3f63
tree7852bde71f4d767d94e90eb169daaf3d31e4e205
parentb8f3420d1eb77075f66c83bced17bb2067f1c01f
Fix crash when encountering alias templates in isDerivedFrom matches.

- pull out function to drill to the CXXRecordDecl from the type,
  to allow recursive resolution
- make the analysis more robust by rather skipping values we don't
  understand

llvm-svn: 187676
clang/lib/ASTMatchers/ASTMatchFinder.cpp
clang/unittests/ASTMatchers/ASTMatchersTest.cpp