Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DModuleManager.cpp364 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
365 VisitOrder.push_back(CurrentModule); in visit()
369 for (auto M = CurrentModule->Imports.rbegin(), in visit()
370 MEnd = CurrentModule->Imports.rend(); in visit()
404 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
406 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
410 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
411 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
412 if (!Visitor(*CurrentModule)) in visit()
418 ModuleFile *NextModule = CurrentModule; in visit()
H A DGeneratePCH.cpp52 PP.getLangOpts().CurrentModule, /*AllowSearch*/ false); in HandleTranslationUnit()
H A DASTReader.cpp4957 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5022 CurrentModule = in ReadSubmoduleBlock()
5051 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
5055 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5058 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
5072 CurrentModule->ConfigMacros.clear(); in ReadSubmoduleBlock()
5074 CurrentModule->Conflicts.clear(); in ReadSubmoduleBlock()
5085 CurrentModule->IsAvailable = !CurrentModule->IsMissingRequirement; in ReadSubmoduleBlock()
5161 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
5173 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock()
[all …]
H A DASTWriter.cpp1594 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock()
2775 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DFrontendAction.cpp145 CI.getLangOpts().CurrentModule, /*AllowSearch*/false); in getCurrentModule()
449 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
461 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
465 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
506 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
605 AST->getLangOpts().CurrentModule, /*AllowSearch*/ false); in BeginSourceFile()
766 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
767 if (!CurrentModule) in BeginSourceFile()
770 CurrentModule->PresumedModuleMapFile = PresumedModuleMapFile; in BeginSourceFile()
777 auto Buffer = getInputBufferForModule(CI, CurrentModule); in BeginSourceFile()
[all …]
H A DFrontendActions.cpp208 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
298 HS.getModuleMap().createHeaderModule(CI.getLangOpts().CurrentModule, Headers); in BeginSourceFileAction()
H A DCompilerInstance.cpp1062 Invocation->getLangOpts()->CurrentModule = ModuleName;
1620 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
1634 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
1931 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
H A DCompilerInvocation.cpp2689 Opts.CurrentModule = Opts.ModuleName; in ParseLangArgs()
/freebsd-12.1/contrib/llvm/include/llvm/ProfileData/
H A DSampleProf.h424 if (M != CurrentModule)
451 static Module *CurrentModule;
475 CurrentModule = &M;
483 CurrentModule = nullptr;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DLangOptions.cpp36 CurrentModule.clear(); in resetNonModularOptions()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DPPDirectives.cpp123 static bool isForModuleBuilding(Module *M, StringRef CurrentModule, in isForModuleBuilding() argument
129 if (M->getTopLevelModule()->IsFramework && CurrentModule == ModuleName && in isForModuleBuilding()
130 !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private")) in isForModuleBuilding()
133 return TopLevelName == CurrentModule; in isForModuleBuilding()
597 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
599 : HeaderInfo.lookupModule(getLangOpts().CurrentModule); in getModuleForLocation()
1879 getLangOpts().CurrentModule, in HandleIncludeDirective()
2023 isForModuleBuilding(M, getLangOpts().CurrentModule, in HandleIncludeDirective()
2065 isForModuleBuilding(M, getLangOpts().CurrentModule, in HandleIncludeDirective()
H A DPPMacroExpansion.cpp385 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros()
1739 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1743 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1744 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
H A DModuleMap.cpp802 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
821 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
848 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderModule()
994 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
1908 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
H A DPPLexerChange.cpp727 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPreprocessor.cpp517 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPragma.cpp1526 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp155 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
H A DCodeGenModule.cpp1744 if (M->getTopLevelModuleName() == getLangOpts().CurrentModule && in EmitModuleLinkOptions()
/freebsd-12.1/contrib/llvm/lib/ProfileData/
H A DSampleProf.cpp33 Module *FunctionSamples::CurrentModule; member in llvm::sampleprof::FunctionSamples
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DLangOptions.h227 std::string CurrentModule; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSema.cpp1000 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local
1004 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
H A DSemaDecl.cpp17005 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
17006 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
17009 << getLangOpts().CurrentModule; in ActOnModuleDecl()
17012 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
17105 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule && in ActOnModuleImport()
17110 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
H A DSemaLookup.cpp1398 return M->getTopLevelModuleName() == LangOpts.CurrentModule || in isInCurrentModule()