llvm-project/lldb/source
Raphael Isemann 3a0e12700b Refactor parsing of option lists with a raw string suffix.
Summary:
A subset of the LLDB commands follows this command line interface style:
   <command name> [arguments] -- <string suffix>
The parsing code for this interface has been so far been duplicated into the different
command objects which makes it hard to maintain and reuse elsewhere.

This patches improves the situation by adding a OptionsWithRaw class that centralizes
the parsing logic and allows easier testing. The different commands now just call this class to
extract the arguments and the raw suffix from the provided user input.

Reviewers: jingham

Reviewed By: jingham

Subscribers: mgorny, lldb-commits

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

llvm-svn: 336723
2018-07-10 20:17:38 +00:00
..
API Add new API to SBTarget and SBModule classes. 2018-07-03 14:22:44 +00:00
Breakpoint Add missing constness. 2018-06-27 07:01:07 +00:00
Commands Refactor parsing of option lists with a raw string suffix. 2018-07-10 20:17:38 +00:00
Core Change AddressClass type from 'enum' to 'enum class'. 2018-06-26 13:06:54 +00:00
DataFormatters Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Expression Add a way to load an image using a library name and list of paths. 2018-06-28 20:02:11 +00:00
Host Fix macos build for r335244 2018-06-21 15:40:33 +00:00
Initialization Move ObjectFile initialization out of SystemInitializerCommon 2018-05-24 12:44:18 +00:00
Interpreter Refactor parsing of option lists with a raw string suffix. 2018-07-10 20:17:38 +00:00
Plugins [ObjCRuntime] Add support for obfuscation in tagged pointers. 2018-07-09 21:53:43 +00:00
Symbol Change AddressClass type from 'enum' to 'enum class'. 2018-06-26 13:06:54 +00:00
Target Add a way to load an image using a library name and list of paths. 2018-06-28 20:02:11 +00:00
Utility Refactor parsing of option lists with a raw string suffix. 2018-07-10 20:17:38 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00