================
@@ -190,6 +201,7 @@ class CommandReturnObject {
std::optional<uint16_t> m_diagnostic_indent;
lldb::ReturnStatus m_status = lldb::eReturnStatusStarted;
+ bool m_status_set = false;
----------------
kastiglione wrote:
this looks like an unrolled optional, but you had reason to not to?
looking at the PR, it feels like it could be an optional with a default of
nullopt, and then a compatible GetStatus would look like:
```cpp
ReturnStatus GetStatus() { return
m_status.value_or(lldb::eReturnStatusStarted); }
```
https://github.com/llvm/llvm-project/pull/196589
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits