diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-11 21:23:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-11 21:23:17 +0000 |
commit | 00c37ef0216518f404953eb90f8cf70c5a8644f9 (patch) | |
tree | 2db9d0b7b76db3afeb9cd6263271c738b6f16886 /clang/lib/Parse/ParseObjc.cpp | |
parent | 0bce17e57204d94156e3a38c3cefc9113d44c491 (diff) | |
download | bcm5719-llvm-00c37ef0216518f404953eb90f8cf70c5a8644f9.tar.gz bcm5719-llvm-00c37ef0216518f404953eb90f8cf70c5a8644f9.zip |
Once code completion has completed, pass a "completion context" on to
the code-completion consumer. The consumer can use this information to
augument, filter, or display the code-completion results.
llvm-svn: 110858
Diffstat (limited to 'clang/lib/Parse/ParseObjc.cpp')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index a7e08562d02..00df5a2c5ab 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -348,8 +348,8 @@ void Parser::ParseObjCInterfaceDeclList(DeclPtrTy interfaceDecl, // Code completion within an Objective-C interface. if (Tok.is(tok::code_completion)) { Actions.CodeCompleteOrdinaryName(getCurScope(), - ObjCImpDecl? Action::CCC_ObjCImplementation - : Action::CCC_ObjCInterface); + ObjCImpDecl? Action::PCC_ObjCImplementation + : Action::PCC_ObjCInterface); ConsumeCodeCompletionToken(); } @@ -1071,7 +1071,7 @@ void Parser::ParseObjCClassInstanceVariables(DeclPtrTy interfaceDecl, if (Tok.is(tok::code_completion)) { Actions.CodeCompleteOrdinaryName(getCurScope(), - Action::CCC_ObjCInstanceVariableList); + Action::PCC_ObjCInstanceVariableList); ConsumeCodeCompletionToken(); } |