diff options
Diffstat (limited to 'lldb/source/Interpreter/Options.cpp')
-rw-r--r-- | lldb/source/Interpreter/Options.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 536cbaae5f2..6c528b119fe 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -751,7 +751,7 @@ bool Options::HandleOptionCompletion(CompletionRequest &request, return false; } -bool Options::HandleOptionArgumentCompletion( +void Options::HandleOptionArgumentCompletion( CompletionRequest &request, OptionElementVector &opt_element_vector, int opt_element_index, CommandInterpreter &interpreter) { auto opt_defs = GetDefinitions(); @@ -764,7 +764,6 @@ bool Options::HandleOptionArgumentCompletion( const auto &enum_values = opt_defs[opt_defs_index].enum_values; if (!enum_values.empty()) { - bool return_value = false; std::string match_string( request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos), request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos) + @@ -774,10 +773,8 @@ bool Options::HandleOptionArgumentCompletion( if (strstr(enum_value.string_value, match_string.c_str()) == enum_value.string_value) { request.AddCompletion(enum_value.string_value); - return_value = true; } } - return return_value; } // If this is a source file or symbol type completion, and there is a -shlib @@ -833,7 +830,7 @@ bool Options::HandleOptionArgumentCompletion( } } - return CommandCompletions::InvokeCommonCompletionCallbacks( + CommandCompletions::InvokeCommonCompletionCallbacks( interpreter, completion_mask, request, filter_up.get()); } |