From 68bce815ac4c53251df4c1038596ea87469562da Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Thu, 31 Jan 2019 10:31:39 +0100 Subject: [PATCH] Clang: Ignore missing includes while indexing Change-Id: I0319fbbbde132320c06cb8b04f7d31aed9c0e218 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 d96fb05026c..e8e77f2e231 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.getPreprocessorPtr()->SetSuppressIncludeNotFoundError(true); compilerInstance.getPreprocessorPtr()->addPPCallbacks(std::move(callbacks)); return true;