We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d7fbb commit 302f463Copy full SHA for 302f463
lib/ClangImporter/ClangImporter.cpp
@@ -821,8 +821,8 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
821
&Impl.Instance->getModuleCache());
822
auto invocation =
823
std::make_shared<clang::CompilerInvocation>(*Impl.Invocation);
824
- // invocation->getPreprocessorOpts().DisablePCHOrModuleValidation =
825
- // clang::DisableValidationForModuleKind::None;
+ invocation->getPreprocessorOpts().DisablePCHOrModuleValidation =
+ clang::DisableValidationForModuleKind::None;
826
invocation->getPreprocessorOpts().AllowPCHWithCompilerErrors = false;
827
invocation->getHeaderSearchOpts().ModulesValidateSystemHeaders = true;
828
invocation->getLangOpts()->NeededByPCHOrCompilationUsesPCH = true;
0 commit comments