Use the file completer for "process launch" arguments.

<rdar://problem/11274012>

llvm-svn: 161704
This commit is contained in:
Jim Ingham 2012-08-10 21:48:41 +00:00
parent baf53f9ff8
commit e9ce62b663
1 changed files with 24 additions and 0 deletions

View File

@ -61,6 +61,30 @@ public:
{
}
int
HandleArgumentCompletion (Args &input,
int &cursor_index,
int &cursor_char_position,
OptionElementVector &opt_element_vector,
int match_start_point,
int max_return_elements,
bool &word_complete,
StringList &matches)
{
std::string completion_str (input.GetArgumentAtIndex(cursor_index));
completion_str.erase (cursor_char_position);
CommandCompletions::InvokeCommonCompletionCallbacks (m_interpreter,
CommandCompletions::eDiskFileCompletion,
completion_str.c_str(),
match_start_point,
max_return_elements,
NULL,
word_complete,
matches);
return matches.GetSize();
}
Options *
GetOptions ()
{