Lines Matching defs:ModuleName
370 std::string ModuleName = stringFromPath(Path);
372 ModuleName += ":";
373 ModuleName += stringFromPath(Partition);
378 getLangOpts().CurrentModule != ModuleName) {
386 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName;
396 if (auto *M = Map.findModule(ModuleName)) {
397 Diag(Path[0].second, diag::err_module_redefinition) << ModuleName;
408 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
421 PP.getIdentifierInfo(ModuleName), Path[0].second);
424 // we're building if `LangOpts.CurrentModule` equals to 'ModuleName'.
431 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName;
434 Diag(ModuleLoc, diag::err_module_not_defined) << ModuleName;
436 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
438 Mod = Map.createModuleForImplementationUnit(ModuleLoc, ModuleName);
445 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName);
584 std::string ModuleName;
591 ModuleName = NamedMod->getPrimaryModuleInterfaceName().str();
592 ModuleName += ":";
593 ModuleName += stringFromPath(Path);
594 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second};
597 ModuleName = stringFromPath(Path);
598 ModuleNameLoc = {PP.getIdentifierInfo(ModuleName), Path[0].second};
610 getCurrentModule()->Name == ModuleName) {
612 << ModuleName << currentModuleIsImplementation();
621 if (!Mod->isInterfaceOrPartition() && !ModuleName.empty() &&
624 << ModuleName;