Lines Matching refs:Module

37 Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent,  in Module()  function in Module
61 Module::~Module() { in ~Module()
131 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable()
133 Module *&ShadowingModule) const { in isUnimportable()
137 for (const Module *Current = this; Current; Current = Current->Parent) { in isUnimportable()
160 bool Module::isForBuilding(const LangOptions &LangOpts) const { in isForBuilding()
176 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable()
179 Module *&ShadowingModule) const { in isAvailable()
188 for (const Module *Current = this; Current; Current = Current->Parent) { in isAvailable()
198 bool Module::isSubModuleOf(const Module *Other) const { in isSubModuleOf()
206 const Module *Module::getTopLevelModule() const { in getTopLevelModule()
207 const Module *Result = this; in getTopLevelModule()
244 std::string Module::getFullModuleName(bool AllowStringLiterals) const { in getFullModuleName()
248 for (const Module *M = this; M; M = M->Parent) in getFullModuleName()
260 bool Module::fullModuleNameIs(ArrayRef<StringRef> nameParts) const { in fullModuleNameIs()
261 for (const Module *M = this; M; M = M->Parent) { in fullModuleNameIs()
269 OptionalDirectoryEntryRef Module::getEffectiveUmbrellaDir() const { in getEffectiveUmbrellaDir()
277 void Module::addTopHeader(FileEntryRef File) { in addTopHeader()
282 ArrayRef<FileEntryRef> Module::getTopHeaders(FileManager &FileMgr) { in getTopHeaders()
293 bool Module::directlyUses(const Module *Requested) { in directlyUses()
315 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement()
327 void Module::markUnavailable(bool Unimportable) { in markUnavailable()
328 auto needUpdate = [Unimportable](Module *M) { in markUnavailable()
335 SmallVector<Module *, 2> Stack; in markUnavailable()
338 Module *Current = Stack.back(); in markUnavailable()
353 Module *Module::findSubmodule(StringRef Name) const { in findSubmodule()
361 Module *Module::findOrInferSubmodule(StringRef Name) { in findOrInferSubmodule()
367 Module *Result = new Module(Name, SourceLocation(), this, false, InferExplicitSubmodules, 0); in findOrInferSubmodule()
372 Result->Exports.push_back(Module::ExportDecl(nullptr, true)); in findOrInferSubmodule()
376 Module *Module::getGlobalModuleFragment() const { in getGlobalModuleFragment()
387 Module *Module::getPrivateModuleFragment() const { in getPrivateModuleFragment()
398 void Module::getExportedModules(SmallVectorImpl<Module *> &Exported) const { in getExportedModules()
400 for (std::vector<Module *>::const_iterator I = SubModules.begin(), in getExportedModules()
403 Module *Mod = *I; in getExportedModules()
411 SmallVector<Module *, 4> WildcardRestrictions; in getExportedModules()
413 Module *Mod = Exports[I].getPointer(); in getExportedModules()
427 if (Module *Restriction = Exports[I].getPointer()) in getExportedModules()
441 Module *Mod = Imports[I]; in getExportedModules()
446 Module *Restriction = WildcardRestrictions[R]; in getExportedModules()
461 void Module::buildVisibleModulesCache() const { in buildVisibleModulesCache()
468 SmallVector<Module *, 16> Stack(Imports.begin(), Imports.end()); in buildVisibleModulesCache()
470 Module *CurrModule = Stack.pop_back_val(); in buildVisibleModulesCache()
478 void Module::print(raw_ostream &OS, unsigned Indent, bool Dump) const { in print()
588 if (Module *Restriction = Exports[I].getPointer()) { in print()
608 for (Module *M : Imports) { in print()
673 LLVM_DUMP_METHOD void Module::dump() const { in dump()
677 void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc, in setVisible()
688 Module *M; in setVisible()
704 SmallVector<Module *, 16> Exports; in setVisible()
706 for (Module *E : Exports) { in setVisible()
714 llvm::SmallVector<Module*, 8> Path; in setVisible()
724 void VisibleModuleSet::makeTransitiveImportsVisible(Module *M, in makeTransitiveImportsVisible()
732 ASTSourceDescriptor::ASTSourceDescriptor(Module &M) in ASTSourceDescriptor()