Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp86 Module *CurrentModule, in isImportingModuleUnitFromSameModule() argument
101 if (!CurrentModule) in isImportingModuleUnitFromSameModule()
110 if (!CurrentModule->isModulePartitionImplementation()) in isImportingModuleUnitFromSameModule()
113 if (Ctx.isInSameModule(Imported, CurrentModule)) { in isImportingModuleUnitFromSameModule()
131 Module *Imported, Module *CurrentModule, in makeTransitiveImportsVisible() argument
154 if (isImportingModuleUnitFromSameModule(Ctx, Importing, CurrentModule, in makeTransitiveImportsVisible()
190 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit()
194 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit()
378 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
379 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
[all …]
H A DSema.cpp1271 if (Module *CurrentModule = getCurrentModule(); in ActOnEndOfTranslationUnit() local
1272 CurrentModule && CurrentModule->isInterfaceOrPartition()) { in ActOnEndOfTranslationUnit()
1286 CurrentModule->NamedModuleHasInit = in ActOnEndOfTranslationUnit()
1287 DoesModNeedInit(CurrentModule) || in ActOnEndOfTranslationUnit()
1288 llvm::any_of(CurrentModule->submodules(), in ActOnEndOfTranslationUnit()
1295 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1299 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
/freebsd/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()
503 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, SourceLocation(), in prepareToBuildModule()
507 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
554 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
668 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile()
864 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
882 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile()
897 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
898 if (!CurrentModule) in BeginSourceFile()
[all …]
H A DFrontendActions.cpp254 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
878 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction()
884 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction()
886 << LO.CurrentModule << "\n"; in ExecuteAction()
911 if (M->Name == LO.CurrentModule) { in ExecuteAction()
913 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
H A DCompilerInstance.cpp1206 Invocation->getLangOpts().CurrentModule = std::string(ModuleName);
2030 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
2047 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
2165 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
H A DASTUnit.cpp896 Module *M = HeaderInfo.lookupModule(AST->getLangOpts().CurrentModule); in LoadFromASTFile()
H A DCompilerInvocation.cpp588 LangOpts.CurrentModule = LangOpts.ModuleName; in FixupInvocation()
/freebsd/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/contrib/llvm-project/clang/lib/Serialization/
H A DGeneratePCH.cpp48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule()
H A DASTReader.cpp5721 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5758 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
5794 CurrentModule = in ReadSubmoduleBlock()
5807 if (OptionalFileEntryRef CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
5815 << CurrentModule->getTopLevelModuleName() << CurFile->getName() in ReadSubmoduleBlock()
5822 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
5823 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ReadSubmoduleBlock()
5826 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5827 CurrentModule->DefinitionLoc = DefinitionLoc; in ReadSubmoduleBlock()
5828 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp214 const Module *CurrentModule = Q.front(); in GetAffectingModuleMaps() local
217 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps()
219 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps()
222 for (auto *M : CurrentModule->submodules()) in GetAffectingModuleMaps()
1567 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2871 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.h117 int32_t CurrentModule = -1;
/freebsd/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/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp931 auto *CurrentModule = ModuleForCurrentSymbol; in traverseObjCCategoryRecord() local
939 ModuleForCurrentSymbol = CurrentModule; in traverseObjCCategoryRecord()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp863 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
926 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
944 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit()
968 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit()
1091 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
2075 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
H A DPPMacroExpansion.cpp400 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1986 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1990 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1991 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DPPLexerChange.cpp790 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPreprocessor.cpp531 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPPDirectives.cpp876 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
878 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation()
H A DPragma.cpp1744 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp365 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() local
369 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp356 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
361 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
416 Module &CurrentModule; member in __anon71830f180111::GUIDToFuncNameMapper
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DLangOptions.h516 std::string CurrentModule; variable
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp3119 if (M->getTopLevelModuleName() == getLangOpts().CurrentModule && in EmitModuleLinkOptions()