"README.md" did not exist on "ee4dab5f1f7a0c32167b8b91c5733e77d4d88dcc"
[lldb] Refactor OptionValueProperties to return a std::optional (NFC)
Similar to fdbe7c7f, refactor OptionValueProperties to return a std::optional instead of taking a fail value. This allows the caller to handle situations where there's no value, instead of being unable to distinguish between the absence of a value and the value happening the match the fail value. When a fail value is required, std::optional::value_or() provides the same functionality.
Showing
- lldb/include/lldb/Interpreter/OptionValueProperties.h 15 additions, 12 deletionslldb/include/lldb/Interpreter/OptionValueProperties.h
- lldb/source/Core/Debugger.cpp 66 additions, 51 deletionslldb/source/Core/Debugger.cpp
- lldb/source/Core/ModuleList.cpp 14 additions, 14 deletionslldb/source/Core/ModuleList.cpp
- lldb/source/Interpreter/CommandInterpreter.cpp 20 additions, 20 deletionslldb/source/Interpreter/CommandInterpreter.cpp
- lldb/source/Interpreter/OptionValueProperties.cpp 31 additions, 41 deletionslldb/source/Interpreter/OptionValueProperties.cpp
- lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp 8 additions, 6 deletions...DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
- lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp 4 additions, 3 deletionslldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
- lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 3 additions, 3 deletionslldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
- lldb/source/Plugins/Platform/QemuUser/PlatformQemuUser.cpp 3 additions, 2 deletionslldb/source/Plugins/Platform/QemuUser/PlatformQemuUser.cpp
- lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp 2 additions, 2 deletionslldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
- lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 6 additions, 6 deletionslldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
- lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp 4 additions, 4 deletions...gins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp 3 additions, 2 deletionslldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
- lldb/source/Target/Platform.cpp 2 additions, 2 deletionslldb/source/Target/Platform.cpp
- lldb/source/Target/Process.cpp 34 additions, 32 deletionslldb/source/Target/Process.cpp
- lldb/source/Target/Target.cpp 95 additions, 85 deletionslldb/source/Target/Target.cpp
- lldb/source/Target/Thread.cpp 8 additions, 8 deletionslldb/source/Target/Thread.cpp
Loading
Please register or sign in to comment