mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
[lldb][NFC] Address some review feedback for D80775 ('command script delete' completion)
In the similar review D81128, Jonas pointed out some style errors that also apply to D80775 (which is already committed). Also applying the changes suggested there to this code.
This commit is contained in:
@@ -1770,14 +1770,11 @@ public:
|
||||
void
|
||||
HandleArgumentCompletion(CompletionRequest &request,
|
||||
OptionElementVector &opt_element_vector) override {
|
||||
|
||||
if (!m_interpreter.HasCommands() || request.GetCursorIndex() != 0)
|
||||
return;
|
||||
const auto &user_dict = m_interpreter.GetUserCommands();
|
||||
|
||||
for (auto pos = user_dict.begin(); pos != user_dict.end(); ++pos) {
|
||||
request.TryCompleteCurrentArg(pos->first, pos->second->GetHelp());
|
||||
}
|
||||
for (const auto &c : m_interpreter.GetUserCommands())
|
||||
request.TryCompleteCurrentArg(c.first, c.second->GetHelp());
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user