[Lldb-commits] [lldb] [lldb] Part 1 of 2 - Refactor `CommandObject::Execute(...)` return `void` (not `bool`) (PR #69989)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 24 09:59:51 PDT 2023


================
@@ -715,7 +715,7 @@ Thread *CommandObject::GetDefaultThread() {
     return nullptr;
 }
 
-bool CommandObjectParsed::Execute(const char *args_string,
+void CommandObjectParsed::Execute(const char *args_string,
                                   CommandReturnObject &result) {
   bool handled = false;
----------------
JDevlieghere wrote:

Not necessary for this patch, but you could probably get rid of `handled` with some an return. 

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


More information about the lldb-commits mailing list