]> granicus.if.org Git - clang/commit
Rework Sema code completion interface.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 13 Nov 2009 08:58:20 +0000 (08:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 13 Nov 2009 08:58:20 +0000 (08:58 +0000)
commit3a2838d14251427089c39caec90c8abbc27f7a14
treecfa0899c839011c5e79e08a39c7f2f45d16afe43
parent0f800391ffbfe3820e1c60246a09a97e5f065179
Rework Sema code completion interface.
 - Provide Sema in callbacks, instead of requiring it in constructor. This
   eliminates the need for a factory function. Clients now just pass the object
   to consume the results in directly.

 - CodeCompleteConsumer is cheap to construct, so building it whenever we are
   doing code completion is reasonable.

Doug, please review.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87099 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Sema/ParseAST.h
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/ParseAST.cpp
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaCodeComplete.cpp
tools/clang-cc/clang-cc.cpp