================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits