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

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 23 23:37:32 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)) {
----------------
jasonmolenda wrote:

I don't think you should remove the `if (!handled)` check at the start of this block; it may be set to true if `InvokeOverrideCallback()` did something.

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


More information about the lldb-commits mailing list