]> granicus.if.org Git - clang/commit
Fix use of invalidated iterator bug in AST match finder.
authorManuel Klimek <klimek@google.com>
Mon, 8 Jul 2013 14:16:30 +0000 (14:16 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 8 Jul 2013 14:16:30 +0000 (14:16 +0000)
commit4d50d252990b201fb9ee02afee37a70d7ad6a507
treea058669e938093a110af74bb0c50be569d24d2c2
parent1659dedac63858de50ee60175a88c42ff974e61b
Fix use of invalidated iterator bug in AST match finder.

Pulled out the cache clearing in the case of descendant matching, too,
for consistency, also it is not technically needed there.

FIXME: Make cache size configurable and add unit test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ASTMatchers/ASTMatchFinder.cpp