diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-09-24 07:22:44 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-09-24 07:22:44 +0000 |
commit | ef06dd4328b4ddddaf2fccd453d6ac47cf7dba11 (patch) | |
tree | bfb2b7611729d14719cbf7d7f6e071ef87b5b1a9 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 6ba63d8851aee10de0e5719faee27a4d3f996b58 (diff) | |
download | bcm5719-llvm-ef06dd4328b4ddddaf2fccd453d6ac47cf7dba11.tar.gz bcm5719-llvm-ef06dd4328b4ddddaf2fccd453d6ac47cf7dba11.zip |
[lldb] Remove redundant argument lists in CompletionRequest
We currently have two lists in the CompletionRequest that we
inherited from the old API: The complete list of arguments ignoring
where the user requested completion and the list of arguments that
stops at the cursor. Having two lists of arguments is confusing
and can lead to subtle errors, so let's remove the complete list
until we actually need it.
llvm-svn: 372692
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index cb61046e574..10a80653168 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1756,7 +1756,7 @@ void CommandInterpreter::HandleCompletionMatches(CompletionRequest &request) { // For any of the command completions a unique match will be a complete word. - if (request.GetPartialParsedLine().GetArgumentCount() == 0) { + if (request.GetParsedLine().GetArgumentCount() == 0) { // We got nothing on the command line, so return the list of commands bool include_aliases = true; StringList new_matches, descriptions; |