Insert interception point onStartOfTranslationUnit.
authorManuel Klimek <klimek@google.com>
Fri, 2 Nov 2012 01:31:03 +0000 (01:31 +0000)
committerManuel Klimek <klimek@google.com>
Fri, 2 Nov 2012 01:31:03 +0000 (01:31 +0000)
commitbd0e2b71110a8c3ef6c398e29d2254ec1d787a21
tree93cc4ca7af3c36fb867bf493f58da4a4594bac46
parent7dcadc6dbe42a91cd88804a5994eab987b42c753
Insert interception point onStartOfTranslationUnit.

Often users of the ASTMatchers want to add tasks that are done once per
translation unit, for example, cleaning up caches. Combined with the
interception point for the end of source file one can add to the factory
creation, this covers the cases we've seen users need.

llvm-svn: 167271
clang/include/clang/ASTMatchers/ASTMatchFinder.h
clang/lib/ASTMatchers/ASTMatchFinder.cpp
clang/unittests/ASTMatchers/ASTMatchersTest.cpp