Lines Matching defs:ModuleName
371 std::string ModuleName = stringFromPath(Path);
373 ModuleName += ":";
374 ModuleName += stringFromPath(Partition);
379 getLangOpts().CurrentModule != ModuleName) {
387 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName;
397 if (auto *M = Map.findModule(ModuleName)) {
398 Diag(Path[0].second, diag::err_module_redefinition) << ModuleName;
409 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
422 PP.getIdentifierInfo(ModuleName), Path[0].second);
425 // we're building if `LangOpts.CurrentModule` equals to 'ModuleName'.
432 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName;
435 Diag(ModuleLoc, diag::err_module_not_defined) << ModuleName;
437 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
439 Mod = Map.createModuleForImplementationUnit(ModuleLoc, ModuleName);
446 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
585 std::string ModuleName;
592 ModuleName = NamedMod->getPrimaryModuleInterfaceName().str();
593 ModuleName += ":";
594 ModuleName += stringFromPath(Path);
595 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second};
598 ModuleName = stringFromPath(Path);
599 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second};
611 getCurrentModule()->Name == ModuleName) {
613 << ModuleName << currentModuleIsImplementation();
622 if (!Mod->isInterfaceOrPartition() && !ModuleName.empty() &&
625 << ModuleName;