Enable caching of global code completion results in the suggested

libclang options for editing a translation unit.

llvm-svn: 114810
This commit is contained in:
Douglas Gregor 2010-09-27 05:49:58 +00:00
parent 4f59cbfb66
commit 176d286c96
1 changed files with 2 additions and 1 deletions

View File

@ -1965,7 +1965,8 @@ CXTranslationUnit clang_createTranslationUnit(CXIndex CIdx,
}
unsigned clang_defaultEditingTranslationUnitOptions() {
return CXTranslationUnit_PrecompiledPreamble;
return CXTranslationUnit_PrecompiledPreamble |
CXTranslationUnit_CacheCompletionResults;
}
CXTranslationUnit