Lines Matching refs:getLangOpts
99 assert(getLangOpts().CPlusPlusModules && in HandleStartOfHeaderUnit()
104 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
108 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
150 else if (II->isReserved(S.getLangOpts()) != in DiagReservedModuleName()
176 assert(getLangOpts().CPlusPlusModules && in ActOnModuleDecl()
203 switch (getLangOpts().getCompilingModule()) { in ActOnModuleDecl()
241 assert((!getLangOpts().CPlusPlusModules || in ActOnModuleDecl()
247 if (getLangOpts().CPlusPlusModules && !IsFirstDecl && !SeenGMF) { in ActOnModuleDecl()
292 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
293 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
298 << getLangOpts().CurrentModule; in ActOnModuleDecl()
301 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
342 const_cast<LangOptions &>(getLangOpts()).CurrentModule = ""; in ActOnModuleDecl()
346 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
367 if (getLangOpts().ModulesLocalVisibility) in ActOnModuleDecl()
488 assert((!IsPartition || getLangOpts().CPlusPlusModules) && in ActOnModuleImport()
507 } else if (getLangOpts().CPlusPlusModules) { in ActOnModuleImport()
520 if (getLangOpts().CPlusPlusModules && isCurrentModulePurview() && in ActOnModuleImport()
533 !getLangOpts().ObjC) { in ActOnModuleImport()
565 if (Mod->isForBuilding(getLangOpts())) { in ActOnModuleImport()
566 Diag(ImportLoc, getLangOpts().isCompilingModule() in ActOnModuleImport()
569 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
580 } else if (getLangOpts().CPlusPlusModules && !Mod->Parent) { in ActOnModuleImport()
606 if (getLangOpts().CPlusPlusModules && ExportLoc.isValid() && in ActOnModuleImport()
645 if (getLangOpts().Modules && !IsInModuleIncludes) { in BuildModuleInclude()
659 if (getLangOpts().isCompilingModule()) { in BuildModuleInclude()
661 getLangOpts().CurrentModule, DirectiveLoc, false, false); in BuildModuleInclude()
672 if (getLangOpts().ModulesLocalVisibility) in ActOnModuleBegin()
680 if (getLangOpts().trackLocalOwningModule()) { in ActOnModuleBegin()
683 getLangOpts().ModulesLocalVisibility in ActOnModuleBegin()
692 if (getLangOpts().ModulesLocalVisibility) { in ActOnModuleEnd()
719 if (getLangOpts().trackLocalOwningModule()) { in ActOnModuleEnd()
734 if (isSFINAEContext() || !getLangOpts().ModulesErrorRecovery || in createImplicitModuleImportForErrorRecovery()