We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738c182 commit 2835765Copy full SHA for 2835765
lldb/include/lldb/Interpreter/CommandObject.h
@@ -40,13 +40,13 @@ int AddNamesMatchingPartialString(
40
StringList *descriptions = nullptr) {
41
int number_added = 0;
42
43
- for (const auto &iter : in_map) {
44
- llvm::StringRef full_cmd = iter.first;
45
- if (full_cmd.starts_with(cmd_str)) {
+ for (const auto &[name, cmd] : in_map) {
+ llvm::StringRef cmd_name = name;
+ if (cmd_name.starts_with(cmd_str)) {
46
++number_added;
47
- matches.AppendString(iter.first);
+ matches.AppendString(name);
48
if (descriptions)
49
- descriptions->AppendString(iter.second->GetHelp());
+ descriptions->AppendString(cmd->GetHelp());
50
}
51
52
0 commit comments