diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:02:54 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-22 09:02:54 +0000 |
commit | 1153dc9603c74f85314505abdae28b3f0dc85c39 (patch) | |
tree | 4f32ee69f63bdcbfb94470ae767186cdfb6de47d /lldb/source/Interpreter/OptionValueEnumeration.cpp | |
parent | 35038c914c187484e65440d204029e716ea1eeca (diff) | |
download | bcm5719-llvm-1153dc9603c74f85314505abdae28b3f0dc85c39.tar.gz bcm5719-llvm-1153dc9603c74f85314505abdae28b3f0dc85c39.zip |
[lldb][NFC] NFC cleanup for the completion code
llvm-svn: 369632
Diffstat (limited to 'lldb/source/Interpreter/OptionValueEnumeration.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionValueEnumeration.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionValueEnumeration.cpp b/lldb/source/Interpreter/OptionValueEnumeration.cpp index 3df0e27bab4..126a4f53e10 100644 --- a/lldb/source/Interpreter/OptionValueEnumeration.cpp +++ b/lldb/source/Interpreter/OptionValueEnumeration.cpp @@ -111,9 +111,8 @@ void OptionValueEnumeration::AutoComplete(CommandInterpreter &interpreter, if (name.startswith(request.GetCursorArgumentPrefix())) request.AddCompletion(name); } - } else { - // only suggest "true" or "false" by default + return; + } for (size_t i = 0; i < num_enumerators; ++i) request.AddCompletion(m_enumerations.GetCStringAtIndex(i).GetStringRef()); - } } |