[all-commits] [llvm/llvm-project] 92d8a2: [lldb] Part 2 of 2 - Refactor `CommandObject::DoEx...
Pete Lawrence via All-commits
all-commits at lists.llvm.org
Mon Oct 30 13:21:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 92d8a28cc665d73d9d679b8c014dd04f95d1df18
https://github.com/llvm/llvm-project/commit/92d8a28cc665d73d9d679b8c014dd04f95d1df18
Author: Pete Lawrence <plawrence at apple.com>
Date: 2023-10-30 (Mon, 30 Oct 2023)
Changed paths:
M lldb/include/lldb/Interpreter/CommandObject.h
M lldb/source/API/SBCommandInterpreter.cpp
M lldb/source/Commands/CommandObjectApropos.cpp
M lldb/source/Commands/CommandObjectApropos.h
M lldb/source/Commands/CommandObjectBreakpoint.cpp
M lldb/source/Commands/CommandObjectBreakpointCommand.cpp
M lldb/source/Commands/CommandObjectCommands.cpp
M lldb/source/Commands/CommandObjectDWIMPrint.cpp
M lldb/source/Commands/CommandObjectDWIMPrint.h
M lldb/source/Commands/CommandObjectDiagnostics.cpp
M lldb/source/Commands/CommandObjectDisassemble.cpp
M lldb/source/Commands/CommandObjectDisassemble.h
M lldb/source/Commands/CommandObjectExpression.cpp
M lldb/source/Commands/CommandObjectExpression.h
M lldb/source/Commands/CommandObjectFrame.cpp
M lldb/source/Commands/CommandObjectGUI.cpp
M lldb/source/Commands/CommandObjectGUI.h
M lldb/source/Commands/CommandObjectHelp.cpp
M lldb/source/Commands/CommandObjectHelp.h
M lldb/source/Commands/CommandObjectLanguage.h
M lldb/source/Commands/CommandObjectLog.cpp
M lldb/source/Commands/CommandObjectMemory.cpp
M lldb/source/Commands/CommandObjectMemoryTag.cpp
M lldb/source/Commands/CommandObjectPlatform.cpp
M lldb/source/Commands/CommandObjectPlugin.cpp
M lldb/source/Commands/CommandObjectProcess.cpp
M lldb/source/Commands/CommandObjectQuit.cpp
M lldb/source/Commands/CommandObjectQuit.h
M lldb/source/Commands/CommandObjectRegexCommand.cpp
M lldb/source/Commands/CommandObjectRegexCommand.h
M lldb/source/Commands/CommandObjectRegister.cpp
M lldb/source/Commands/CommandObjectScript.cpp
M lldb/source/Commands/CommandObjectScript.h
M lldb/source/Commands/CommandObjectSession.cpp
M lldb/source/Commands/CommandObjectSettings.cpp
M lldb/source/Commands/CommandObjectSource.cpp
M lldb/source/Commands/CommandObjectStats.cpp
M lldb/source/Commands/CommandObjectTarget.cpp
M lldb/source/Commands/CommandObjectThread.cpp
M lldb/source/Commands/CommandObjectThreadUtil.cpp
M lldb/source/Commands/CommandObjectThreadUtil.h
M lldb/source/Commands/CommandObjectTrace.cpp
M lldb/source/Commands/CommandObjectType.cpp
M lldb/source/Commands/CommandObjectVersion.cpp
M lldb/source/Commands/CommandObjectVersion.h
M lldb/source/Commands/CommandObjectWatchpoint.cpp
M lldb/source/Commands/CommandObjectWatchpointCommand.cpp
M lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
M lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
M lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
M lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
M lldb/source/Plugins/Trace/intel-pt/CommandObjectTraceStartIntelPT.h
M lldb/source/Plugins/TraceExporter/ctf/CommandObjectThreadTraceExportCTF.cpp
M lldb/source/Plugins/TraceExporter/ctf/CommandObjectThreadTraceExportCTF.h
M lldb/unittests/Interpreter/TestCommandPaths.cpp
Log Message:
-----------
[lldb] Part 2 of 2 - Refactor `CommandObject::DoExecute(...)` return `void` (not `bool`) (#69991)
[lldb] Part 2 of 2 - Refactor `CommandObject::DoExecute(...)` to return
`void` instead of ~~`bool`~~
Justifications:
- The code doesn't ultimately apply the `true`/`false` return values.
- The methods already pass around a `CommandReturnObject`, typically
with a `result` parameter.
- Each command return object already contains:
- A more precise status
- The error code(s) that apply to that status
Part 1 refactors the `CommandObject::Execute(...)` method.
- See
[https://github.com/llvm/llvm-project/pull/69989](https://github.com/llvm/llvm-project/pull/69989)
rdar://117378957
More information about the All-commits
mailing list