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/ParseDecl.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/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 65b4fb77adc..b0d9da58457 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -853,14 +853,14 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, AccessSpecifier AS, DeclSpecContext DSContext) { if (Tok.is(tok::code_completion)) { - Action::CodeCompletionContext CCC = Action::CCC_Namespace; + Action::ParserCompletionContext CCC = Action::PCC_Namespace; if (TemplateInfo.Kind != ParsedTemplateInfo::NonTemplate) - CCC = DSContext == DSC_class? Action::CCC_MemberTemplate - : Action::CCC_Template; + CCC = DSContext == DSC_class? Action::PCC_MemberTemplate + : Action::PCC_Template; else if (DSContext == DSC_class) - CCC = Action::CCC_Class; + CCC = Action::PCC_Class; else if (ObjCImpDecl) - CCC = Action::CCC_ObjCImplementation; + CCC = Action::PCC_ObjCImplementation; Actions.CodeCompleteOrdinaryName(getCurScope(), CCC); ConsumeCodeCompletionToken(); |

