rnk added inline comments.

================
Comment at: lib/Tooling/InterpolatingCompilationDatabase.cpp:182-184
+      if (Arg->getOption().matches(driver::options::OPT_driver_mode)) {
+        // Process --driver-mode.
+        IsCLMode = std::strcmp(Arg->getValue(), "cl") == 0;
----------------
I think you need to do this up front, otherwise you'll parse some args in 
non-cl mode and some in cl mode.


Repository:
  rC Clang

https://reviews.llvm.org/D51321



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to