diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-09-27 05:49:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-09-27 05:49:58 +0000 |
commit | 2a2c50b330e7754499f42173616a36865b5f313b (patch) | |
tree | 2443f4d2b8df0bc7e7a6af0b96578357666af868 /tools/libclang/CIndex.cpp | |
parent | 48f9994bdd9f7f1853782109595b1f80f50afcfa (diff) |
Enable caching of global code completion results in the suggested
libclang options for editing a translation unit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114810 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndex.cpp')
-rw-r--r-- | tools/libclang/CIndex.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 554edd824e..f41906209d 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -1965,7 +1965,8 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx, } unsigned clang_defaultEditingTranslationUnitOptions() { - return CXTranslationUnit_PrecompiledPreamble; + return CXTranslationUnit_PrecompiledPreamble | + CXTranslationUnit_CacheCompletionResults; } CXTranslationUnit |