Add CXTranslationUnit_CreatePreambleOnFirstParse for code completion on non-Windows machines.

This commit is contained in:
Jacob Dufault 2017-05-08 22:15:35 -07:00
parent 8ed20567a1
commit 6737599c11

View File

@ -23,7 +23,12 @@ unsigned Flags() {
CXTranslationUnit_CacheCompletionResults |
CXTranslationUnit_PrecompiledPreamble |
CXTranslationUnit_IncludeBriefCommentsInCodeCompletion |
//CXTranslationUnit_CreatePreambleOnFirstParse |
#if !defined(_WIN32)
// For whatever reason, CreatePreambleOnFirstParse causes clang to become
// very crashy on windows.
// TODO: do more investigation, submit fixes to clang.
CXTranslationUnit_CreatePreambleOnFirstParse |
#endif
CXTranslationUnit_DetailedPreprocessingRecord;
}