Abstract interface for a module loader. More...
#include "clang/Lex/ModuleLoader.h"
Abstract interface for a module loader.
This abstract interface describes a module loader, which is responsible for resolving a module name (e.g., "std") to an actual module file, and then loading that module.
Definition at line 82 of file ModuleLoader.h.
◆ ModuleLoader() clang::ModuleLoader::ModuleLoader ( bool BuildingModule =false
) inlineexplicit
Definition at line 87 of file ModuleLoader.h.
◆ ~ModuleLoader() ModuleLoader::~ModuleLoader ( ) virtualdefault ◆ buildingModule() bool clang::ModuleLoader::buildingModule ( ) const inline ◆ createModuleFromSource() virtual void clang::ModuleLoader::createModuleFromSource ( SourceLocation Loc, StringRef ModuleName, StringRef Source ) pure virtual ◆ loadGlobalModuleIndex()Load, create, or return global module.
This function returns an existing global module index, if one had already been loaded or created, or loads one if it exists, or creates one if it doesn't exist. Also, importantly, if the index doesn't cover all the modules in the module map, it will be update to do so here, because of its use in searching for needed module imports and associated fixit messages.
Implemented in clang::CompilerInstance, and clang::TrivialModuleLoader.
◆ loadModule()Attempt to load the given module.
This routine attempts to load the module described by the given parameters. If there is a module cache, this may implicitly compile the module before loading it.
Implemented in clang::CompilerInstance, and clang::TrivialModuleLoader.
Referenced by clang::Sema::ActOnModuleDecl(), clang::Sema::ActOnModuleImport(), clang::SemaCodeCompletion::CodeCompleteModuleImport(), and clang::Preprocessor::LexAfterModuleImport().
◆ lookupMissingImports() virtual bool clang::ModuleLoader::lookupMissingImports ( StringRef Name, SourceLocation TriggerLoc ) pure virtualCheck global module index for missing imports.
Implemented in clang::CompilerInstance, and clang::TrivialModuleLoader.
◆ makeModuleVisible() ◆ setBuildingModule() void clang::ModuleLoader::setBuildingModule ( bool BuildingModuleFlag ) inlineFlag indicating whether this instance is building a module.
Definition at line 98 of file ModuleLoader.h.
◆ HadFatalFailure bool clang::ModuleLoader::HadFatalFailure = falseThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4