Commit 558d212d authored by Olivier de Gaalon's avatar Olivier de Gaalon
Browse files

Only add the Incomplete flag for Unknown TU environments

See discussion about this flag at:
http://lists.llvm.org/pipermail/cfe-dev/2015-November/045806.html
parent 0cb7ea4e
......@@ -123,8 +123,10 @@ ParseSessionData::ParseSessionData(const QVector<UnsavedFile>& unsavedFiles, Cla
flags |= CXTranslationUnit_ForSerialization;
} else {
flags |= CXTranslationUnit_CacheCompletionResults
| CXTranslationUnit_PrecompiledPreamble
| CXTranslationUnit_Incomplete;
| CXTranslationUnit_PrecompiledPreamble;
if (environment.quality() == ClangParsingEnvironment::Unknown) {
flags |= CXTranslationUnit_Incomplete;
}
}
const auto tuUrl = environment.translationUnitUrl();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment