Lines Matching refs:RequestingModule
210 static bool violatesPrivateInclude(Module *RequestingModule, in violatesPrivateInclude() argument
230 return !Header.isAccessibleFrom(RequestingModule); in violatesPrivateInclude()
237 void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule, in diagnoseHeaderInclusion() argument
244 if (getTopLevelOrNull(RequestingModule) != getTopLevelOrNull(SourceModule)) in diagnoseHeaderInclusion()
247 if (RequestingModule) in diagnoseHeaderInclusion()
248 resolveUses(RequestingModule, /*Complain=*/false); in diagnoseHeaderInclusion()
258 if (violatesPrivateInclude(RequestingModule, File, Header)) { in diagnoseHeaderInclusion()
265 if (RequestingModule && LangOpts.ModulesDeclUse && in diagnoseHeaderInclusion()
266 !RequestingModule->directlyUses(Header.getModule())) { in diagnoseHeaderInclusion()
288 << RequestingModule->getFullModuleName() << Filename; in diagnoseHeaderInclusion()
299 << RequestingModule->getFullModuleName() << Filename; in diagnoseHeaderInclusion()
300 } else if (RequestingModule && RequestingModuleIsModuleInterface) { in diagnoseHeaderInclusion()
301 diag::kind DiagID = RequestingModule->getTopLevelModule()->IsFramework ? in diagnoseHeaderInclusion()
304 Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName(); in diagnoseHeaderInclusion()
438 const Module *RequestingModule) const { in isHeaderUnavailableInModule()
445 if (I->isAvailable() && (!RequestingModule || in isHeaderUnavailableInModule()
446 I->getModule()->isSubModuleOf(RequestingModule))) in isHeaderUnavailableInModule()
457 return !M->isAvailable() && (!RequestingModule || in isHeaderUnavailableInModule()
458 M->isSubModuleOf(RequestingModule)); in isHeaderUnavailableInModule()