forked from qt-creator/qt-creator
Clang: Improve indexing performance on Windows
Do not use delayed template parsing (it's too slow). Change-Id: I473c92394321920239fd90e6a37f0ce517f94e6a Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -45,6 +45,7 @@ bool CollectMacrosSourceFileCallbacks::handleBeginSource(clang::CompilerInstance
|
|||||||
compilerInstance.getPreprocessorPtr(),
|
compilerInstance.getPreprocessorPtr(),
|
||||||
m_sourcesManager);
|
m_sourcesManager);
|
||||||
|
|
||||||
|
compilerInstance.getLangOpts().DelayedTemplateParsing = false;
|
||||||
compilerInstance.getPreprocessorPtr()->SetSuppressIncludeNotFoundError(true);
|
compilerInstance.getPreprocessorPtr()->SetSuppressIncludeNotFoundError(true);
|
||||||
compilerInstance.getPreprocessorPtr()->addPPCallbacks(std::move(callbacks));
|
compilerInstance.getPreprocessorPtr()->addPPCallbacks(std::move(callbacks));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user