Lines Matching refs:getLangOpts

80     assert(getLangOpts().CPlusPlusModules && getLangOpts().ModulesTS &&  in ActOnGlobalModuleFragmentDecl()
108 assert(getLangOpts().CPlusPlusModules && in HandleStartOfHeaderUnit()
113 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
116 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
151 assert((getLangOpts().ModulesTS || getLangOpts().CPlusPlusModules) && in ActOnModuleDecl()
178 switch (getLangOpts().getCompilingModule()) { in ActOnModuleDecl()
224 assert((!getLangOpts().CPlusPlusModules || getLangOpts().ModulesTS || in ActOnModuleDecl()
230 if (getLangOpts().CPlusPlusModules && !IsFirstDecl && !SeenGMF) { in ActOnModuleDecl()
252 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
253 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
258 << getLangOpts().CurrentModule; in ActOnModuleDecl()
261 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
320 if (getLangOpts().ModulesLocalVisibility) in ActOnModuleDecl()
431 bool Cxx20Mode = getLangOpts().CPlusPlusModules || getLangOpts().ModulesTS; in ActOnModuleImport()
463 if (getLangOpts().CPlusPlusModules && isCurrentModulePurview() && in ActOnModuleImport()
498 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule && in ActOnModuleImport()
499 (getLangOpts().isCompilingModule() || !getLangOpts().ModulesTS)) { in ActOnModuleImport()
500 Diag(ImportLoc, getLangOpts().isCompilingModule() in ActOnModuleImport()
503 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
514 } else if (getLangOpts().CPlusPlusModules && !Mod->Parent) { in ActOnModuleImport()
540 if (getLangOpts().CPlusPlusModules && ExportLoc.isValid() && in ActOnModuleImport()
546 (getLangOpts().CPlusPlusModules && in ActOnModuleImport()
565 } else if (getLangOpts().isCompilingModule()) { in ActOnModuleImport()
567 getLangOpts().CurrentModule, ExportLoc, false, false); in ActOnModuleImport()
613 if (getLangOpts().isCompilingModule()) { in BuildModuleInclude()
615 getLangOpts().CurrentModule, DirectiveLoc, false, false); in BuildModuleInclude()
626 if (getLangOpts().ModulesLocalVisibility) in ActOnModuleBegin()
634 if (getLangOpts().trackLocalOwningModule()) { in ActOnModuleBegin()
637 getLangOpts().ModulesLocalVisibility in ActOnModuleBegin()
646 if (getLangOpts().ModulesLocalVisibility) { in ActOnModuleEnd()
673 if (getLangOpts().trackLocalOwningModule()) { in ActOnModuleEnd()
688 if (isSFINAEContext() || !getLangOpts().ModulesErrorRecovery || in createImplicitModuleImportForErrorRecovery()