diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-21 16:56:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-21 16:56:56 +0000 |
commit | 86d9a52c24d390631a888d4ff812e1b15445e0a0 (patch) | |
tree | 1f30ab2df64a31faf773231cf5ac963cb118b134 /lib/Sema/ParseAST.cpp | |
parent | 657f21bee4750eb28dfb4d60662919417a53d724 (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.cpp | 4 |
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; |