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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@107247 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectImage.cpp b/source/Commands/CommandObjectImage.cpp
index 0bf339c..909b36d 100644
--- a/source/Commands/CommandObjectImage.cpp
+++ b/source/Commands/CommandObjectImage.cpp
@@ -422,6 +422,7 @@
OptionElementVector &opt_element_vector,
int match_start_point,
int max_return_elements,
+ bool &word_complete,
StringList &matches)
{
// Arguments are the standard module completer.
@@ -434,6 +435,7 @@
match_start_point,
max_return_elements,
NULL,
+ word_complete,
matches);
return matches.GetSize();
}
@@ -463,6 +465,7 @@
OptionElementVector &opt_element_vector,
int match_start_point,
int max_return_elements,
+ bool word_complete,
StringList &matches)
{
// Arguments are the standard source file completer.
@@ -475,6 +478,7 @@
match_start_point,
max_return_elements,
NULL,
+ word_complete,
matches);
return matches.GetSize();
}