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 | e6b1bb6e7fe906d164637ca33503b8fafdbc99e5 (patch) | |
tree | 04d46dcc8dbdba7495c573d0ff6c373e754e6ce9 /lib/Parse/ParseDecl.cpp | |
parent | 741c362a1cb4f3644d5a4e6b8eb9244799e4ade6 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 65b4fb77ad..b0d9da5845 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/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(); |