[clang] [clang][DependencyScanning] Logging Dependency Scanning Events (PR #195896)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 2 11:48:39 PDT 2026


================
@@ -101,14 +102,17 @@ struct DependencyScanningServiceOptions {
   bool AsyncScanModules = false;
   /// The build session timestamp for validate-once-per-build-session logic.
   std::time_t BuildSessionTimestamp; // = std::chrono::system_clock::now();
+  /// The path to a log file, which logs timing of actions performed by
+  /// the dependency scanner.
+  std::string LogPath;
 };
 
 /// The dependency scanning service contains shared configuration and state that
 /// is used by the individual dependency scanning workers.
 class DependencyScanningService {
 public:
   explicit DependencyScanningService(DependencyScanningServiceOptions Opts)
-      : Opts(std::move(Opts)) {}
+      : Opts(std::move(Opts)), Logger(this->Opts.LogPath) {}
----------------
qiongsiwu wrote:

Yes! 

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


More information about the cfe-commits mailing list