summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectMultiword.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-03-08 02:49:15 +0000
committerEnrico Granata <egranata@apple.com>2016-03-08 02:49:15 +0000
commit308f73c5a3c53f2b9fe8df4c1e73f6786ad7735e (patch)
treea4559c80a5eb3653af14ba3d65ef96393543a658 /lldb/source/Commands/CommandObjectMultiword.cpp
parent5e63e78ca9407d0592b5a5c7dbf1017a45d91bf5 (diff)
downloadbcm5719-llvm-308f73c5a3c53f2b9fe8df4c1e73f6786ad7735e.tar.gz
bcm5719-llvm-308f73c5a3c53f2b9fe8df4c1e73f6786ad7735e.zip
Change the way command aliases are stored. Go from a model where a map holds the alias -> underlying command binding and another map holds the alias -> options, to a model where one single map holds the alias -> (all useful data) combination
Right now, obviously, this is just the pair of (CommandObjectSP,OptionArgVectorSP), so NFC This is step one of a larger - and tricky - refactoring which will turn command aliases into interesting objects instead of passive storage that the command interpreter does smart things to This refactoring, in turn, will allow us to do interesting things with aliases, such as intelligent and customizable help llvm-svn: 262900
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMultiword.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp
index 6d35c9cec1f..18e162dcec4 100644
--- a/lldb/source/Commands/CommandObjectMultiword.cpp
+++ b/lldb/source/Commands/CommandObjectMultiword.cpp
@@ -56,7 +56,7 @@ CommandObjectMultiword::GetSubcommandSP (const char *sub_cmd, StringList *matche
StringList local_matches;
if (matches == nullptr)
matches = &local_matches;
- int num_matches = CommandObject::AddNamesMatchingPartialString (m_subcommand_dict, sub_cmd, *matches);
+ int num_matches = AddNamesMatchingPartialString (m_subcommand_dict, sub_cmd, *matches);
if (num_matches == 1)
{
@@ -227,9 +227,9 @@ CommandObjectMultiword::HandleCompletion(Args &input,
const char *arg0 = input.GetArgumentAtIndex(0);
if (cursor_index == 0)
{
- CommandObject::AddNamesMatchingPartialString (m_subcommand_dict,
- arg0,
- matches);
+ AddNamesMatchingPartialString (m_subcommand_dict,
+ arg0,
+ matches);
if (matches.GetSize() == 1
&& matches.GetStringAtIndex(0) != nullptr
OpenPOWER on IntegriCloud