forked from OSchip/llvm-project
[lldb][NFC] Remove dead code in Options::HandleOptionArgumentCompletion
llvm-svn: 372572
This commit is contained in:
parent
c60913f162
commit
48d38ca6ac
|
@ -752,16 +752,9 @@ void Options::HandleOptionArgumentCompletion(
|
||||||
// See if this is an enumeration type option, and if so complete it here:
|
// See if this is an enumeration type option, and if so complete it here:
|
||||||
|
|
||||||
const auto &enum_values = opt_defs[opt_defs_index].enum_values;
|
const auto &enum_values = opt_defs[opt_defs_index].enum_values;
|
||||||
if (!enum_values.empty()) {
|
if (!enum_values.empty())
|
||||||
std::string match_string(
|
for (const auto &enum_value : enum_values)
|
||||||
request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos),
|
|
||||||
request.GetParsedLine().GetArgumentAtIndex(opt_arg_pos) +
|
|
||||||
request.GetCursorCharPosition());
|
|
||||||
|
|
||||||
for (const auto &enum_value : enum_values) {
|
|
||||||
request.TryCompleteCurrentArg(enum_value.string_value);
|
request.TryCompleteCurrentArg(enum_value.string_value);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// If this is a source file or symbol type completion, and there is a -shlib
|
// If this is a source file or symbol type completion, and there is a -shlib
|
||||||
// option somewhere in the supplied arguments, then make a search filter for
|
// option somewhere in the supplied arguments, then make a search filter for
|
||||||
|
|
Loading…
Reference in New Issue