Skip to content

Commit ea645d2

Browse files
committed
[lldb][lldb-dap] Revert matching alias partial string
1 parent 7deb08f commit ea645d2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lldb/source/Interpreter/CommandInterpreter.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,14 +1377,7 @@ bool CommandInterpreter::GetAliasFullName(llvm::StringRef cmd,
13771377
}
13781378

13791379
bool CommandInterpreter::AliasExists(llvm::StringRef cmd) const {
1380-
const bool exact_match = (m_alias_dict.find(cmd) != m_alias_dict.end());
1381-
if (exact_match)
1382-
return true;
1383-
1384-
StringList matches;
1385-
const int num_cmd_matches =
1386-
AddNamesMatchingPartialString(m_command_dict, cmd, matches);
1387-
return num_cmd_matches > 0;
1380+
return m_alias_dict.find(cmd) != m_alias_dict.end();
13881381
}
13891382

13901383
bool CommandInterpreter::UserCommandExists(llvm::StringRef cmd) const {

0 commit comments

Comments
 (0)