Move Args::StringTo*** functions to a new OptionArgParser class
authorPavel Labath <labath@google.com>
Tue, 10 Apr 2018 09:03:59 +0000 (09:03 +0000)
committerPavel Labath <labath@google.com>
Tue, 10 Apr 2018 09:03:59 +0000 (09:03 +0000)
commit47cbf4a07bdfe8f5ef56be7a0caf003f91a00a9e
tree9d619d8e076a6c0a5113264c2b3d96369f85e275
parentbfa20dddcbf31e05be41c3bd993bf25578bfa179
Move Args::StringTo*** functions to a new OptionArgParser class

Summary:
The idea behind this is to move the functionality which depend on other lldb
classes into a separate class. This way, the Args class can be turned
into a lightweight arc+argv wrapper and moved into the lower lldb
layers.

Reviewers: jingham, zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D44306

llvm-svn: 329677
35 files changed:
lldb/include/lldb/Interpreter/Args.h
lldb/include/lldb/Interpreter/OptionArgParser.h [new file with mode: 0644]
lldb/include/lldb/Interpreter/Options.h
lldb/source/API/SBDebugger.cpp
lldb/source/Commands/CommandObjectBreakpoint.cpp
lldb/source/Commands/CommandObjectBreakpointCommand.cpp
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Commands/CommandObjectDisassemble.cpp
lldb/source/Commands/CommandObjectExpression.cpp
lldb/source/Commands/CommandObjectLog.cpp
lldb/source/Commands/CommandObjectMemory.cpp
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Commands/CommandObjectSource.cpp
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Commands/CommandObjectThread.cpp
lldb/source/Commands/CommandObjectType.cpp
lldb/source/Commands/CommandObjectWatchpointCommand.cpp
lldb/source/Interpreter/Args.cpp
lldb/source/Interpreter/CMakeLists.txt
lldb/source/Interpreter/OptionArgParser.cpp [new file with mode: 0644]
lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp
lldb/source/Interpreter/OptionGroupWatchpoint.cpp
lldb/source/Interpreter/OptionValueBoolean.cpp
lldb/source/Interpreter/OptionValueChar.cpp
lldb/source/Interpreter/OptionValueFormat.cpp
lldb/source/Interpreter/Property.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
lldb/source/Target/Process.cpp
lldb/unittests/Interpreter/CMakeLists.txt
lldb/unittests/Interpreter/TestArgs.cpp
lldb/unittests/Interpreter/TestOptionArgParser.cpp [new file with mode: 0644]