Lines Matching refs:Module

37 Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent,  in Module()  function in Module
61 Module::~Module() { in ~Module()
130 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable()
132 Module *&ShadowingModule) const { in isUnimportable()
136 for (const Module *Current = this; Current; Current = Current->Parent) { in isUnimportable()
153 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable()
156 Module *&ShadowingModule) const { in isAvailable()
165 for (const Module *Current = this; Current; Current = Current->Parent) { in isAvailable()
175 bool Module::isSubModuleOf(const Module *Other) const { in isSubModuleOf()
183 const Module *Module::getTopLevelModule() const { in getTopLevelModule()
184 const Module *Result = this; in getTopLevelModule()
221 std::string Module::getFullModuleName(bool AllowStringLiterals) const { in getFullModuleName()
225 for (const Module *M = this; M; M = M->Parent) in getFullModuleName()
237 bool Module::fullModuleNameIs(ArrayRef<StringRef> nameParts) const { in fullModuleNameIs()
238 for (const Module *M = this; M; M = M->Parent) { in fullModuleNameIs()
246 Module::DirectoryName Module::getUmbrellaDir() const { in getUmbrellaDir()
254 void Module::addTopHeader(const FileEntry *File) { in addTopHeader()
259 ArrayRef<const FileEntry *> Module::getTopHeaders(FileManager &FileMgr) { in getTopHeaders()
272 bool Module::directlyUses(const Module *Requested) const { in directlyUses()
290 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement()
302 void Module::markUnavailable(bool Unimportable) { in markUnavailable()
303 auto needUpdate = [Unimportable](Module *M) { in markUnavailable()
310 SmallVector<Module *, 2> Stack; in markUnavailable()
313 Module *Current = Stack.back(); in markUnavailable()
330 Module *Module::findSubmodule(StringRef Name) const { in findSubmodule()
338 Module *Module::findOrInferSubmodule(StringRef Name) { in findOrInferSubmodule()
344 Module *Result = new Module(Name, SourceLocation(), this, false, InferExplicitSubmodules, 0); in findOrInferSubmodule()
349 Result->Exports.push_back(Module::ExportDecl(nullptr, true)); in findOrInferSubmodule()
353 void Module::getExportedModules(SmallVectorImpl<Module *> &Exported) const { in getExportedModules()
355 for (std::vector<Module *>::const_iterator I = SubModules.begin(), in getExportedModules()
358 Module *Mod = *I; in getExportedModules()
366 SmallVector<Module *, 4> WildcardRestrictions; in getExportedModules()
368 Module *Mod = Exports[I].getPointer(); in getExportedModules()
382 if (Module *Restriction = Exports[I].getPointer()) in getExportedModules()
396 Module *Mod = Imports[I]; in getExportedModules()
401 Module *Restriction = WildcardRestrictions[R]; in getExportedModules()
416 void Module::buildVisibleModulesCache() const { in buildVisibleModulesCache()
423 SmallVector<Module *, 16> Stack(Imports.begin(), Imports.end()); in buildVisibleModulesCache()
425 Module *CurrModule = Stack.pop_back_val(); in buildVisibleModulesCache()
433 void Module::print(raw_ostream &OS, unsigned Indent, bool Dump) const { in print()
544 if (Module *Restriction = Exports[I].getPointer()) { in print()
564 for (Module *M : Imports) { in print()
629 LLVM_DUMP_METHOD void Module::dump() const { in dump()
633 void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc, in setVisible()
642 Module *M; in setVisible()
658 SmallVector<Module *, 16> Exports; in setVisible()
660 for (Module *E : Exports) { in setVisible()
668 llvm::SmallVector<Module*, 8> Path; in setVisible()
678 ASTSourceDescriptor::ASTSourceDescriptor(Module &M) in ASTSourceDescriptor()