[PATCH] Add support for profiling the matchers used.

Samuel Benzaquen sbenza at google.com
Wed Oct 22 11:59:44 PDT 2014


================
Comment at: include/clang/ASTMatchers/ASTMatchFinder.h:134
@@ +133,3 @@
+    /// It prints a report after match.
+    std::unique_ptr<ProfileChecks> EnableCheckProfiling;
+  };
----------------
alexfh wrote:
> Maybe just "CheckProfiling"? "Enable" hints that this is a bool, but it's not (though is used as a bool in some places).
It used to be a bool on the first iterations of the code.
Then it evolved into having the ostream.
And now has the record map =)

http://reviews.llvm.org/D5911






More information about the cfe-commits mailing list