Commit 28180a41 authored by Erik Verbruggen's avatar Erik Verbruggen

Clang: do not pass the CXTranslationUnit_Incomplete option for parsing.

This flag is meant to be used when generating pre-compiled headers.

Change-Id: I4758f36c5774e7da8c3b6cc401ea4245761d2278
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 35e093ff
......@@ -66,7 +66,6 @@ void SemanticMarker::setFileName(const QString &fileName)
m_unit->setCompilationOptions(oldOptions);
unsigned clangOpts = clang_defaultEditingTranslationUnitOptions();
clangOpts |= CXTranslationUnit_Incomplete;
clangOpts |= CXTranslationUnit_DetailedPreprocessingRecord;
clangOpts &= ~CXTranslationUnit_CacheCompletionResults;
m_unit->setManagementOptions(clangOpts);
......
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