[PATCH] Relax some preconditions for using FixedCompilationDatabase.
Manuel Klimek
klimek at google.com
Mon Nov 4 01:07:04 PST 2013
================
Comment at: lib/Tooling/CompilationDatabase.cpp:118
@@ +117,3 @@
+
+ void run(const driver::Action *A) {
+ bool setCollect = false;
----------------
I'd change the signature to have a bool Collect parameter, and then remove the member and do:
{
bool CollectChildren = Collect;
...
case CompileJobClass:
CollectChildren = true;
...
for (...)
run(*I, CollectChildren);
http://llvm-reviews.chandlerc.com/D2039
More information about the cfe-commits
mailing list