summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-11 21:23:17 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-11 21:23:17 +0000
commit00c37ef0216518f404953eb90f8cf70c5a8644f9 (patch)
tree2db9d0b7b76db3afeb9cd6263271c738b6f16886 /clang/lib/Parse/ParseDecl.cpp
parent0bce17e57204d94156e3a38c3cefc9113d44c491 (diff)
downloadbcm5719-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.cpp10
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();
OpenPOWER on IntegriCloud