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

Pete Lawrence via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 24 05:50:50 PDT 2023


================
@@ -769,10 +768,10 @@ bool CommandObjectRaw::Execute(const char *args_string,
     handled = InvokeOverrideCallback(argv, result);
   }
   if (!handled) {
-    if (CheckRequirements(result))
-      handled = DoExecute(args_string, result);
+    if (CheckRequirements(result)) {
----------------
PortalPete wrote:

I agree with you, which is why I didn't remove `if (!handled)`.

Did you mean to refer to something else in this part of the diff?

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


More information about the lldb-commits mailing list