llvm-project/clang/lib/ASTMatchers
Samuel Benzaquen d6b44aad31 [ASTMatchers] Do not try to memoize nodes we can't compare.
Summary:
Prevent hasAncestor from comparing nodes that are not supported.
hasDescendant was fixed some time ago to avoid this problem.
I'm applying the same fix to hasAncestor: if any object in the Builder map is
not comparable, skip the cache.

Reviewers: alexfh

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D19231

llvm-svn: 266748
2016-04-19 15:52:56 +00:00
..
Dynamic Add typedefNameDecl() and typeAliasDecl() to the AST matchers; improves hasType() to match on TypedefNameDecl nodes. 2016-04-14 16:05:45 +00:00
ASTMatchFinder.cpp [ASTMatchers] Do not try to memoize nodes we can't compare. 2016-04-19 15:52:56 +00:00
ASTMatchersInternal.cpp Fix a -Wunused-variable diagnostic. 2016-02-23 10:29:04 +00:00
CMakeLists.txt ASTMatchers: Add an explicit dependency on libclangBasic. 2015-03-12 16:25:19 +00:00