]> granicus.if.org Git - clang/commit
Add code-completion support directly to ASTUnit, which performs code
authorDouglas Gregor <dgregor@apple.com>
Wed, 4 Aug 2010 16:47:14 +0000 (16:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 4 Aug 2010 16:47:14 +0000 (16:47 +0000)
commit1abc6bca3d7fb0e7b1e40fbcad6cfb5e10594548
tree5c1d36c373e6002a046275c30ebac20f095abe57
parentcbfe50224b19119e759802bd0c1463269dffd09e
Add code-completion support directly to ASTUnit, which performs code
completion within the translation unit using the same command-line
arguments for parsing the translation unit. Eventually, we'll reuse
the precompiled preamble to improve code-completion performance, and
this also gives us a place to cache results.

Expose this function via the new libclang function
clang_codeCompleteAt(), which performs the code completion within a
CXTranslationUnit. The completion occurs in-process
(clang_codeCompletion() runs code completion out-of-process).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110210 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang-c/Index.h
include/clang/Frontend/ASTUnit.h
include/clang/Sema/CodeCompleteConsumer.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-exprs.c
tools/c-index-test/c-index-test.c
tools/libclang/CIndex.cpp
tools/libclang/CIndexCodeCompletion.cpp
tools/libclang/libclang.darwin.exports
tools/libclang/libclang.exports