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

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 3 14:56:23 PDT 2026


================
@@ -75,6 +81,14 @@ class AtomicLineLogger {
 
   ~AtomicLineLogger();
 
+  // Enables the logger if it is not already enabled. Thread safe.
+  // Returns false only when the requested path conflicts with the
+  // already-committed path. In other words, returns false if
+  // the logger is not enabled consistently during its lifetime.
+  bool enable(StringRef RequestedLogPath);
----------------
cyndyishida wrote:

nit: 
```  
/// Enables the logger if it is not already enabled. Thread safe.
///
/// \returns false if the logger is not enabled consistently during its lifetime.
```

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


More information about the cfe-commits mailing list