aboutsummaryrefslogtreecommitdiff
path: root/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
commit86d9a52c24d390631a888d4ff812e1b15445e0a0 (patch)
tree1f30ab2df64a31faf773231cf5ac963cb118b134 /lib/Sema/ParseAST.cpp
parent657f21bee4750eb28dfb4d60662919417a53d724 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/ParseAST.cpp')
-rw-r--r--lib/Sema/ParseAST.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp
index be19b7e3d9..d09af0a450 100644
--- a/lib/Sema/ParseAST.cpp
+++ b/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;