diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:14:42 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:14:42 +0000 |
commit | 494370c101e27c5a4561df864825992087a2d69f (patch) | |
tree | 720181d1b2674237d5930ab21ffc0a8288e238cf /lldb/source/Interpreter/Options.cpp | |
parent | 26f42623986e6d701ab7a17164b490b61fa75e6f (diff) | |
download | bcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.tar.gz bcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.zip |
[lldb][NFC] Remove unused return value from HandleOptionArgumentCompletion
llvm-svn: 369635
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()); } |