[cfe-commits] [PATCH] Adds the possibility to inject a callback that's called after each translation unit is processed. This is important when one wants to deduplicate results during one run over a translation unit by pointer identity of AST nodes.
Daniel Jasper
djasper at google.com
Wed Oct 24 07:38:00 PDT 2012
================
Comment at: include/clang/Tooling/Tooling.h:78
@@ +77,3 @@
+/// \brief Called at the end of each source file when used with
+/// newFrontendActionFactory.
+class EndOfSourceFileCallback {
----------------
nit: \c newFrontendActionFactory.
================
Comment at: unittests/Tooling/ToolingTest.cpp:150
@@ +149,3 @@
+ std::vector<std::string> Sources;
+ Sources.push_back("/a.cc");
+ Sources.push_back("/b.cc");
----------------
Either count calls or use only one file.
http://llvm-reviews.chandlerc.com/D77
BRANCH
on-tu-finished
More information about the cfe-commits
mailing list