[clang] [clang][DependencyScanning] Add a Clang Driver Option to Enable Dependency Scanning Logging (PR #211966)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 11 04:46:25 PDT 2026


================
@@ -125,6 +127,9 @@ buildCompilation(ArrayRef<std::string> ArgStrs, DiagnosticsEngine &Diags,
     return std::make_pair(nullptr, nullptr);
   }
 
+  Logger.enable(
+      Compilation->getArgs().getLastArgValue(options::OPT_fdepscan_log_path));
----------------
jansvoboda11 wrote:

It's fairly unusual for driver arguments to exist solely to change the scanner's behavior. What's the use-case here?

https://github.com/llvm/llvm-project/pull/211966


More information about the cfe-commits mailing list