Lines Matching refs:ModuleName
245 std::string ModuleName = stringFromPath(Path); in ActOnModuleDecl() local
247 ModuleName += ":"; in ActOnModuleDecl()
248 ModuleName += stringFromPath(Partition); in ActOnModuleDecl()
253 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
261 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
271 if (auto *M = Map.findModule(ModuleName)) { in ActOnModuleDecl()
272 Diag(Path[0].second, diag::err_module_redefinition) << ModuleName; in ActOnModuleDecl()
283 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName, in ActOnModuleDecl()
293 PP.getIdentifierInfo(ModuleName), Path[0].second); in ActOnModuleDecl()
302 Diag(ModuleLoc, diag::err_module_not_defined) << ModuleName; in ActOnModuleDecl()
304 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName, in ActOnModuleDecl()
312 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName, in ActOnModuleDecl()
438 std::string ModuleName; in ActOnModuleImport() local
445 ModuleName = NamedMod->getPrimaryModuleInterfaceName().str(); in ActOnModuleImport()
446 ModuleName += ":"; in ActOnModuleImport()
447 ModuleName += stringFromPath(Path); in ActOnModuleImport()
448 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second}; in ActOnModuleImport()
451 ModuleName = stringFromPath(Path); in ActOnModuleImport()
452 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second}; in ActOnModuleImport()
464 getCurrentModule()->Name == ModuleName) { in ActOnModuleImport()
466 << ModuleName << !ModuleScopes.back().ModuleInterface; in ActOnModuleImport()