summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/ParseAST.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-21 16:56:56 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-21 16:56:56 +0000
commit3545ff43f41ac1f2208c3a7fefcc87ddb8bdf360 (patch)
treeb0e77850afcc68a3f22ac5534a3f4eb8e393cfff /clang/lib/Sema/ParseAST.cpp
parentfdd0a2fb40d318682f09ef9e83becf4f52b68680 (diff)
downloadbcm5719-llvm-3545ff43f41ac1f2208c3a7fefcc87ddb8bdf360.tar.gz
bcm5719-llvm-3545ff43f41ac1f2208c3a7fefcc87ddb8bdf360.zip
Refactor and simplify the CodeCompleteConsumer, so that all of the
real work is performed within Sema. Addresses Chris's comments, but still retains the heavyweight list-of-multimaps data structure. llvm-svn: 82459
Diffstat (limited to 'clang/lib/Sema/ParseAST.cpp')
-rw-r--r--clang/lib/Sema/ParseAST.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/ParseAST.cpp b/clang/lib/Sema/ParseAST.cpp
index be19b7e3d98..d09af0a450d 100644
--- a/clang/lib/Sema/ParseAST.cpp
+++ b/clang/lib/Sema/ParseAST.cpp
@@ -64,8 +64,10 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer,
}
CodeCompleteConsumer *CodeCompleter = 0;
- if (CreateCodeCompleter)
+ if (CreateCodeCompleter) {
CodeCompleter = CreateCodeCompleter(S, CreateCodeCompleterData);
+ S.setCodeCompleteConsumer(CodeCompleter);
+ }
Parser::DeclGroupPtrTy ADecl;
OpenPOWER on IntegriCloud