[Lldb-commits] [lldb] [LLDB][Minidump] Minidump erase file on failure (PR #108259)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 11 11:27:20 PDT 2024
https://github.com/jeffreytan81 requested changes to this pull request.
The logic makes sense.
Implementation wise, instead of calling `builder.DeleteFile()` in every failure code path, I would suggest creating a RAII class which calls `builder.DeleteFile()` in destructor. Then you just need to create a single RAII object in this method and without catching every single exit point. This will greatly simplify the code.
https://github.com/llvm/llvm-project/pull/108259
More information about the lldb-commits
mailing list