Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Serialization/ASTReader.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 3,626 Lines • ▼ Show 20 Lines | if (!PP.getPreprocessorOpts().DisablePCHValidation && !ModMap) { | ||||
} | } | ||||
return OutOfDate; | return OutOfDate; | ||||
} | } | ||||
assert(M->Name == F.ModuleName && "found module with different name"); | assert(M->Name == F.ModuleName && "found module with different name"); | ||||
// Check the primary module map file. | // Check the primary module map file. | ||||
const FileEntry *StoredModMap = FileMgr.getFile(F.ModuleMapPath); | const FileEntry *StoredModMap = FileMgr.getFile(F.ModuleMapPath); | ||||
if (StoredModMap == nullptr || StoredModMap != ModMap) { | if (!PP.getPreprocessorOpts().DisablePCHValidation && | ||||
(StoredModMap == nullptr || StoredModMap != ModMap)) { | |||||
assert(ModMap && "found module is missing module map file"); | assert(ModMap && "found module is missing module map file"); | ||||
assert(ImportedBy && "top-level import should be verified"); | assert(ImportedBy && "top-level import should be verified"); | ||||
if ((ClientLoadCapabilities & ARR_OutOfDate) == 0) | if ((ClientLoadCapabilities & ARR_OutOfDate) == 0) | ||||
Diag(diag::err_imported_module_modmap_changed) | Diag(diag::err_imported_module_modmap_changed) | ||||
<< F.ModuleName << ImportedBy->FileName | << F.ModuleName << ImportedBy->FileName | ||||
<< ModMap->getName() << F.ModuleMapPath; | << ModMap->getName() << F.ModuleMapPath; | ||||
return OutOfDate; | return OutOfDate; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 8,920 Lines • Show Last 20 Lines |