Add comment describing the interaction of WantsRawCommandString()/WantsCompletion() with the completion mechanism.

llvm-svn: 148521
This commit is contained in:
Johnny Chen 2012-01-20 00:59:19 +00:00
parent 9249261858
commit 6561d15dcb
1 changed files with 4 additions and 0 deletions

View File

@ -344,6 +344,10 @@ CommandObject::HandleCompletion
StringList &matches
)
{
// Default implmentation of WantsCompletion() is !WantsRawCommandString().
// Subclasses who want raw command string but desire, for example,
// argument completion should override WantsCompletion() to return true,
// instead.
if (WantsRawCommandString() && !WantsCompletion())
{
// FIXME: Abstract telling the completion to insert the completion character.