[cfe-commits] r114810 - /cfe/trunk/tools/libclang/CIndex.cpp
Douglas Gregor
dgregor at apple.com
Sun Sep 26 22:49:58 PDT 2010
Author: dgregor
Date: Mon Sep 27 00:49:58 2010
New Revision: 114810
URL: http://llvm.org/viewvc/llvm-project?rev=114810&view=rev
Log:
Enable caching of global code completion results in the suggested
libclang options for editing a translation unit.
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=114810&r1=114809&r2=114810&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Mon Sep 27 00:49:58 2010
@@ -1965,7 +1965,8 @@
}
unsigned clang_defaultEditingTranslationUnitOptions() {
- return CXTranslationUnit_PrecompiledPreamble;
+ return CXTranslationUnit_PrecompiledPreamble |
+ CXTranslationUnit_CacheCompletionResults;
}
CXTranslationUnit
More information about the cfe-commits
mailing list