llvm-project/lldb/unittests
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
..
Breakpoint Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Core Scalar: Use llvm integer conversion functions 2018-06-19 17:24:03 +00:00
Editline Move PseudoTerminal to the lldb_private namespace 2017-12-11 10:09:14 +00:00
Expression Really fix ClangParserTest 2018-06-05 10:29:48 +00:00
Host [FileSpec] Make style argument mandatory for SetFile. NFC 2018-06-13 22:54:52 +00:00
Interpreter Modernize completion tests 2018-06-29 09:06:42 +00:00
Language CPlusPlusLanguage: Add unit tests for the FindAlternateFunctionManglings method 2018-05-10 08:59:17 +00:00
ObjectFile [FileSpec] Make style argument mandatory for SetFile. NFC 2018-06-13 22:54:52 +00:00
Platform Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
Process Represent invalid UUIDs as UUIDs with length zero 2018-06-26 15:12:20 +00:00
ScriptInterpreter Added new API to SBStructuredData class 2017-05-29 08:25:46 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
SymbolFile Revert "PDB support of function-level linking and splitted functions" 2018-06-06 09:16:00 +00:00
Target Remove UUID::SetFromCString 2018-06-21 15:24:39 +00:00
TestingSupport cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
UnwindAssembly [LLDB] Initial version of PPC64 InstEmulation 2018-02-27 18:42:46 +00:00
Utility Refactor parsing of option lists with a raw string suffix. 2018-07-10 20:17:38 +00:00
debugserver [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
tools Reapply "Remove Process references from the Host module" 2018-05-15 13:42:26 +00:00
CMakeLists.txt [cmake, unittests] Fix the CMake file for the LLDB unittests to support multiple configurations 2018-05-09 19:58:51 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00