Lines Matching refs:ModuleMap

40 ModuleMap::resolveExport(Module *Mod,   in resolveExport()
57 Module *ModuleMap::resolveModuleId(const ModuleId &Id, Module *Mod, in resolveModuleId()
87 ModuleMap::ModuleMap(SourceManager &SourceMgr, DiagnosticsEngine &Diags, in ModuleMap() function in ModuleMap
96 ModuleMap::~ModuleMap() { in ~ModuleMap()
101 void ModuleMap::setTarget(const TargetInfo &Target) { in setTarget()
163 ModuleMap::HeadersMap::iterator
164 ModuleMap::findKnownHeader(const FileEntry *File) { in findKnownHeader()
175 ModuleMap::KnownHeader
176 ModuleMap::findHeaderInUmbrellaDirs(const FileEntry *File, in findHeaderInUmbrellaDirs()
212 ModuleMap::KnownHeader Header) { in violatesPrivateInclude()
214 if (Header.getRole() & ModuleMap::PrivateHeader) { in violatesPrivateInclude()
237 void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule, in diagnoseHeaderInclusion()
308 static bool isBetterKnownHeader(const ModuleMap::KnownHeader &New, in isBetterKnownHeader()
309 const ModuleMap::KnownHeader &Old) { in isBetterKnownHeader()
315 if ((New.getRole() & ModuleMap::PrivateHeader) != in isBetterKnownHeader()
316 (Old.getRole() & ModuleMap::PrivateHeader)) in isBetterKnownHeader()
317 return !(New.getRole() & ModuleMap::PrivateHeader); in isBetterKnownHeader()
320 if ((New.getRole() & ModuleMap::TextualHeader) != in isBetterKnownHeader()
321 (Old.getRole() & ModuleMap::TextualHeader)) in isBetterKnownHeader()
322 return !(New.getRole() & ModuleMap::TextualHeader); in isBetterKnownHeader()
328 ModuleMap::KnownHeader ModuleMap::findModuleForHeader(const FileEntry *File) { in findModuleForHeader()
329 auto MakeResult = [&](ModuleMap::KnownHeader R) -> ModuleMap::KnownHeader { in findModuleForHeader()
330 if (R.getRole() & ModuleMap::TextualHeader) in findModuleForHeader()
331 return ModuleMap::KnownHeader(); in findModuleForHeader()
337 ModuleMap::KnownHeader Result; in findModuleForHeader()
352 ModuleMap::KnownHeader
353 ModuleMap::findOrCreateModuleForHeaderInUmbrellaDir(const FileEntry *File) { in findOrCreateModuleForHeaderInUmbrellaDir()
424 ArrayRef<ModuleMap::KnownHeader>
425 ModuleMap::findAllModulesForHeader(const FileEntry *File) const { in findAllModulesForHeader()
432 bool ModuleMap::isHeaderInUnavailableModule(const FileEntry *Header) const { in isHeaderInUnavailableModule()
437 ModuleMap::isHeaderUnavailableInModule(const FileEntry *Header, in isHeaderUnavailableInModule()
518 Module *ModuleMap::findModule(StringRef Name) const { in findModule()
526 Module *ModuleMap::lookupModuleUnqualified(StringRef Name, in lookupModuleUnqualified()
536 Module *ModuleMap::lookupModuleQualified(StringRef Name, Module *Context) const{ in lookupModuleQualified()
544 ModuleMap::findOrCreateModule(StringRef Name, Module *Parent, bool IsFramework, in findOrCreateModule()
587 Module *ModuleMap::inferFrameworkModule(const DirectoryEntry *FrameworkDir, in inferFrameworkModule()
594 Module *ModuleMap::inferFrameworkModule(const DirectoryEntry *FrameworkDir, in inferFrameworkModule()
759 void ModuleMap::setUmbrellaHeader(Module *Mod, const FileEntry *UmbrellaHeader, in setUmbrellaHeader()
771 void ModuleMap::setUmbrellaDir(Module *Mod, const DirectoryEntry *UmbrellaDir, in setUmbrellaDir()
778 static Module::HeaderKind headerRoleToKind(ModuleMap::ModuleHeaderRole Role) { in headerRoleToKind()
781 case ModuleMap::NormalHeader: in headerRoleToKind()
783 case ModuleMap::PrivateHeader: in headerRoleToKind()
785 case ModuleMap::TextualHeader: in headerRoleToKind()
787 case ModuleMap::PrivateHeader | ModuleMap::TextualHeader: in headerRoleToKind()
792 void ModuleMap::addHeader(Module *Mod, Module::Header Header, in addHeader()
821 void ModuleMap::excludeHeader(Module *Mod, Module::Header Header) { in excludeHeader()
832 ModuleMap::getContainingModuleMapFile(const Module *Module) const { in getContainingModuleMapFile()
840 const FileEntry *ModuleMap::getModuleMapFileForUniquing(const Module *M) const { in getModuleMapFileForUniquing()
848 void ModuleMap::setInferredModuleAllowedBy(Module *M, const FileEntry *ModMap) { in setInferredModuleAllowedBy()
853 LLVM_DUMP_METHOD void ModuleMap::dump() { in dump()
875 bool ModuleMap::resolveExports(Module *Mod, bool Complain) { in resolveExports()
888 bool ModuleMap::resolveUses(Module *Mod, bool Complain) { in resolveUses()
901 bool ModuleMap::resolveConflicts(Module *Mod, bool Complain) { in resolveConflicts()
916 Module *ModuleMap::inferModuleFromLocation(FullSourceLoc Loc) { in inferModuleFromLocation()
1016 ModuleMap &Map;
1076 typedef ModuleMap::Attributes Attributes;
1083 ModuleMap &Map, in ModuleMapParser()
1729 ModuleMap::ModuleHeaderRole Role = ModuleMap::NormalHeader; in parseHeaderDecl()
1731 Role = ModuleMap::PrivateHeader; in parseHeaderDecl()
1740 Role = ModuleMap::ModuleHeaderRole(Role | ModuleMap::TextualHeader); in parseHeaderDecl()
1745 Role = ModuleMap::ModuleHeaderRole(Role | ModuleMap::TextualHeader); in parseHeaderDecl()
1954 Map.addHeader(ActiveModule, std::move(Header), ModuleMap::TextualHeader); in parseUmbrellaDirDecl()
2440 bool ModuleMap::parseModuleMapFile(const FileEntry *File, bool IsSystem, in parseModuleMapFile()