Lines Matching refs:Module

37 Module::Module(StringRef Name, SourceLocation DefinitionLoc, Module *Parent,  in Module()  function in Module
61 Module::~Module() { in ~Module()
128 bool Module::isUnimportable(const LangOptions &LangOpts, in isUnimportable()
130 Module *&ShadowingModule) const { in isUnimportable()
134 for (const Module *Current = this; Current; Current = Current->Parent) { in isUnimportable()
151 bool Module::isAvailable(const LangOptions &LangOpts, const TargetInfo &Target, in isAvailable()
154 Module *&ShadowingModule) const { in isAvailable()
163 for (const Module *Current = this; Current; Current = Current->Parent) { in isAvailable()
173 bool Module::isSubModuleOf(const Module *Other) const { in isSubModuleOf()
181 const Module *Module::getTopLevelModule() const { in getTopLevelModule()
182 const Module *Result = this; in getTopLevelModule()
219 std::string Module::getFullModuleName(bool AllowStringLiterals) const { in getFullModuleName()
223 for (const Module *M = this; M; M = M->Parent) in getFullModuleName()
235 bool Module::fullModuleNameIs(ArrayRef<StringRef> nameParts) const { in fullModuleNameIs()
236 for (const Module *M = this; M; M = M->Parent) { in fullModuleNameIs()
244 Module::DirectoryName Module::getUmbrellaDir() const { in getUmbrellaDir()
252 void Module::addTopHeader(const FileEntry *File) { in addTopHeader()
257 ArrayRef<const FileEntry *> Module::getTopHeaders(FileManager &FileMgr) { in getTopHeaders()
270 bool Module::directlyUses(const Module *Requested) { in directlyUses()
291 void Module::addRequirement(StringRef Feature, bool RequiredState, in addRequirement()
303 void Module::markUnavailable(bool Unimportable) { in markUnavailable()
304 auto needUpdate = [Unimportable](Module *M) { in markUnavailable()
311 SmallVector<Module *, 2> Stack; in markUnavailable()
314 Module *Current = Stack.back(); in markUnavailable()
331 Module *Module::findSubmodule(StringRef Name) const { in findSubmodule()
339 Module *Module::findOrInferSubmodule(StringRef Name) { in findOrInferSubmodule()
345 Module *Result = new Module(Name, SourceLocation(), this, false, InferExplicitSubmodules, 0); in findOrInferSubmodule()
350 Result->Exports.push_back(Module::ExportDecl(nullptr, true)); in findOrInferSubmodule()
354 void Module::getExportedModules(SmallVectorImpl<Module *> &Exported) const { in getExportedModules()
356 for (std::vector<Module *>::const_iterator I = SubModules.begin(), in getExportedModules()
359 Module *Mod = *I; in getExportedModules()
367 SmallVector<Module *, 4> WildcardRestrictions; in getExportedModules()
369 Module *Mod = Exports[I].getPointer(); in getExportedModules()
383 if (Module *Restriction = Exports[I].getPointer()) in getExportedModules()
397 Module *Mod = Imports[I]; in getExportedModules()
402 Module *Restriction = WildcardRestrictions[R]; in getExportedModules()
417 void Module::buildVisibleModulesCache() const { in buildVisibleModulesCache()
424 SmallVector<Module *, 16> Stack(Imports.begin(), Imports.end()); in buildVisibleModulesCache()
426 Module *CurrModule = Stack.pop_back_val(); in buildVisibleModulesCache()
434 void Module::print(raw_ostream &OS, unsigned Indent, bool Dump) const { in print()
545 if (Module *Restriction = Exports[I].getPointer()) { in print()
565 for (Module *M : Imports) { in print()
630 LLVM_DUMP_METHOD void Module::dump() const { in dump()
634 void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc, in setVisible()
643 Module *M; in setVisible()
659 SmallVector<Module *, 16> Exports; in setVisible()
661 for (Module *E : Exports) { in setVisible()
669 llvm::SmallVector<Module*, 8> Path; in setVisible()
679 ASTSourceDescriptor::ASTSourceDescriptor(Module &M) in ASTSourceDescriptor()