llvm-project/lldb/source/Interpreter
Raphael Isemann a2e76c0bfc Replaced more boilerplate code with CompletionRequest (NFC)
Summary:
As suggested in D48796, this patch replaces even more internal calls that were using the old
completion API style with a single CompletionRequest. In some cases we also pass an option
vector/index, but as we don't always have this information, it currently is not part of the
CompletionRequest class.

The constructor of the CompletionRequest is now also more sensible. You only pass the
user input, cursor position and your list of matches to the request and the rest will be
inferred (using the same code we used before to calculate this). You also have to pass these
match window parameters to it, even though they are unused right now.

The patch shouldn't change any behavior.

Reviewers: jingham

Reviewed By: jingham

Subscribers: lldb-commits

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

llvm-svn: 337031
2018-07-13 18:28:14 +00:00
..
CMakeLists.txt Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
CommandAlias.cpp Refactoring for for the internal command line completion API (NFC) 2018-07-02 21:29:56 +00:00
CommandHistory.cpp Fix !N and !-N commands and add a test case. 2017-04-19 23:21:04 +00:00
CommandInterpreter.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
CommandObject.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
CommandObjectRegexCommand.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
CommandObjectScript.cpp Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00
CommandObjectScript.h Get rid of the C-string parameter in DoExecute 2018-07-12 22:28:52 +00:00
CommandOptionValidators.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CommandReturnObject.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionArgParser.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionGroupArchitecture.cpp Invert ArchSpec<->Platform dependency 2017-10-31 10:56:03 +00:00
OptionGroupBoolean.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionGroupFile.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionGroupFormat.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionGroupOutputFile.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionGroupPlatform.cpp Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
OptionGroupString.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionGroupUInt64.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionGroupUUID.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionGroupValueObjectDisplay.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionGroupVariable.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionGroupWatchpoint.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionValue.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueArch.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueArgs.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueArray.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueBoolean.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueChar.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionValueDictionary.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionValueEnumeration.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueFileSpec.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueFileSpecLIst.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueFormat.cpp Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
OptionValueFormatEntity.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
OptionValueLanguage.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValuePathMappings.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueProperties.cpp Fix the .experimental. settings feature so that we don't return an error 2018-05-01 22:49:01 +00:00
OptionValueRegex.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionValueSInt64.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
OptionValueString.cpp Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
OptionValueUInt64.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
OptionValueUUID.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
Options.cpp Replaced more boilerplate code with CompletionRequest (NFC) 2018-07-13 18:28:14 +00:00
Property.cpp Remove UUID::SetFromCString 2018-06-21 15:24:39 +00:00
ScriptInterpreter.cpp [Interpreter] Simplify else after return. NFCI. 2017-09-03 19:27:56 +00:00
embedded_interpreter.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00