aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectHelp.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-06-30 05:02:46 +0000
committerJim Ingham <jingham@apple.com>2010-06-30 05:02:46 +0000
commit558ce124eb9787beae314effe12b3c17568625e1 (patch)
tree99a0ea792b6a91576c1e4e1e4b97202e2a54963e /lldb/source/Commands/CommandObjectHelp.cpp
parente82689fea2a5f049ac3cfab705e6fac7ce1f0f21 (diff)
downloadllvm-558ce124eb9787beae314effe12b3c17568625e1.zip
llvm-558ce124eb9787beae314effe12b3c17568625e1.tar.gz
llvm-558ce124eb9787beae314effe12b3c17568625e1.tar.bz2
Add a source file completer to the CommandCompleters.
Add a way for the completers to say whether the completed argument should have a space inserted after is or not. Added the file name completer to the "file" command. llvm-svn: 107247
Diffstat (limited to 'lldb/source/Commands/CommandObjectHelp.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectHelp.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp
index 8a037e9..363bbc4 100644
--- a/lldb/source/Commands/CommandObjectHelp.cpp
+++ b/lldb/source/Commands/CommandObjectHelp.cpp
@@ -144,19 +144,22 @@ CommandObjectHelp::HandleCompletion
int &cursor_char_position,
int match_start_point,
int max_return_elements,
+ bool &word_complete,
StringList &matches
)
{
// Return the completions of the commands in the help system:
if (cursor_index == 0)
{
- return interpreter.HandleCompletionMatches(input, cursor_index, cursor_char_position, match_start_point, max_return_elements, matches);
+ return interpreter.HandleCompletionMatches(input, cursor_index, cursor_char_position, match_start_point,
+ max_return_elements, word_complete, matches);
}
else
{
CommandObject *cmd_obj = interpreter.GetCommandObject (input.GetArgumentAtIndex(0), true, false);
input.Shift();
cursor_index--;
- return cmd_obj->HandleCompletion (interpreter, input, cursor_index, cursor_char_position, match_start_point, max_return_elements, matches);
+ return cmd_obj->HandleCompletion (interpreter, input, cursor_index, cursor_char_position, match_start_point,
+ max_return_elements, word_complete, matches);
}
}