================ @@ -5030,47 +5045,81 @@ int main(int argc, char *argv[]) { } #endif + std::unique_ptr<std::ofstream> log = nullptr; + const char *log_file_path = getenv("LLDBDAP_LOG"); + if (log_file_path) + log.reset(new std::ofstream(log_file_path)); ---------------- labath wrote:
```suggestion log = std::make_unique<std::ofstream>(log_file_path)); ``` to avoid the bare `new`. https://github.com/llvm/llvm-project/pull/120457 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits