From 4599d1ad4d47185a242e8909d61039265c290098 Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Fri, 1 Feb 2019 12:24:24 +0100 Subject: [PATCH] Clang: Improve indexing performance on Windows Do not use delayed template parsing (it's too slow). Change-Id: I473c92394321920239fd90e6a37f0ce517f94e6a Reviewed-by: Marco Bubke --- .../source/collectmacrossourcefilecallbacks.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/clangrefactoringbackend/source/collectmacrossourcefilecallbacks.cpp b/src/tools/clangrefactoringbackend/source/collectmacrossourcefilecallbacks.cpp index e8e77f2e231..d0d107e45e2 100644 --- a/src/tools/clangrefactoringbackend/source/collectmacrossourcefilecallbacks.cpp +++ b/src/tools/clangrefactoringbackend/source/collectmacrossourcefilecallbacks.cpp @@ -45,6 +45,7 @@ bool CollectMacrosSourceFileCallbacks::handleBeginSource(clang::CompilerInstance compilerInstance.getPreprocessorPtr(), m_sourcesManager); + compilerInstance.getLangOpts().DelayedTemplateParsing = false; compilerInstance.getPreprocessorPtr()->SetSuppressIncludeNotFoundError(true); compilerInstance.getPreprocessorPtr()->addPPCallbacks(std::move(callbacks));