Home
last modified time | relevance | path

Searched refs:CurrentModule (Results 1 – 25 of 27) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp358 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
359 VisitOrder.push_back(CurrentModule); in visit()
363 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit()
395 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
397 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
401 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
402 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
403 if (!Visitor(*CurrentModule)) in visit()
409 ModuleFile *NextModule = CurrentModule; in visit()
H A DGeneratePCH.cpp53 PP.getLangOpts().CurrentModule, SourceLocation(), in HandleTranslationUnit()
H A DASTReader.cpp5715 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5788 CurrentModule = in ReadSubmoduleBlock()
5820 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5824 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
5841 CurrentModule->Conflicts.clear(); in ReadSubmoduleBlock()
5850 CurrentModule->IsUnimportable = in ReadSubmoduleBlock()
5852 CurrentModule->IsAvailable = !CurrentModule->IsUnimportable; in ReadSubmoduleBlock()
5934 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
5946 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
5958 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp229 for (const Module *CurrentModule : ModulesToProcess) { in GetAffectingModuleMaps() local
230 CollectIncludingMapsFromAncestors(CurrentModule); in GetAffectingModuleMaps()
231 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps()
233 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps()
1454 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2733 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendAction.cpp160 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule()
491 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
507 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
548 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
662 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile()
855 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
873 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
888 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
889 if (!CurrentModule) in BeginSourceFile()
892 CurrentModule->PresumedModuleMapFile = PresumedModuleMapFile; in BeginSourceFile()
[all …]
H A DFrontendActions.cpp243 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
842 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction()
849 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction()
851 << LO.CurrentModule << "\n"; in ExecuteAction()
876 if (M->Name == LO.CurrentModule) { in ExecuteAction()
878 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
H A DCompilerInstance.cpp1195 Invocation->getLangOpts().CurrentModule = std::string(ModuleName);
1990 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
2002 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
2114 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
H A DASTUnit.cpp884 Module *M = HeaderInfo.lookupModule(AST->getLangOpts().CurrentModule); in LoadFromASTFile()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp104 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
108 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
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()
569 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
661 getLangOpts().CurrentModule, DirectiveLoc, false, false); in BuildModuleInclude()
H A DSema.cpp1232 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1236 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
1255 if (Module *CurrentModule = getCurrentModule(); in ActOnEndOfTranslationUnit() local
1256 CurrentModule && CurrentModule->isInterfaceOrPartition()) { in ActOnEndOfTranslationUnit()
1270 CurrentModule->NamedModuleHasInit = in ActOnEndOfTranslationUnit()
1271 DoesModNeedInit(CurrentModule) || in ActOnEndOfTranslationUnit()
1272 llvm::any_of(CurrentModule->submodules(), in ActOnEndOfTranslationUnit()
H A DSemaLookup.cpp1610 llvm::StringRef(getLangOpts().CurrentModule).split(':').first) { in isUsableModule()
5768 Module *CurrentModule = getCurrentModule(); in diagnoseMissingImport() local
5774 CurrentModule && CurrentModule->getPrimaryModuleInterfaceName() == in diagnoseMissingImport()
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp162 StringRef CurrentModule = LangOpts.CurrentModule; in isForBuilding() local
168 CurrentModule == LangOpts.ModuleName && in isForBuilding()
169 !CurrentModule.ends_with("_Private") && in isForBuilding()
173 return TopLevelName == CurrentModule; in isForBuilding()
H A DLangOptions.cpp45 CurrentModule.clear(); in resetNonModularOptions()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp160 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.h117 int32_t CurrentModule = -1;
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.cpp1089 if (CurrentModule != Modi) { in createScopes()
1093 CurrentModule = Modi; in createScopes()
1120 if (LVScope *Scope = getScopeForModule(CurrentModule)) { in processModule()
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DPPMacroExpansion.cpp399 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1848 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1852 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1853 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DModuleMap.cpp864 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
927 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
945 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit()
969 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit()
1092 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
2069 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
H A DPPLexerChange.cpp791 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPPDirectives.cpp875 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
877 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation()
H A DPreprocessor.cpp527 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPragma.cpp1743 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp296 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() local
300 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DLangOptions.h473 std::string CurrentModule; variable
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp335 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
340 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
395 Module &CurrentModule; member in __anon254a5ace0111::GUIDToFuncNameMapper

12