mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
Add comment describing the interaction of WantsRawCommandString()/WantsCompletion() with the completion mechanism.
llvm-svn: 148521
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user