|
clang 22.0.0git
|
Classes | |
| struct | ConfigMacrosDecl |
| struct | ConflictDecl |
| struct | ExcludeDecl |
| struct | ExportAsDecl |
| struct | ExportDecl |
| struct | ExternModuleDecl |
| struct | HeaderDecl |
| struct | LinkDecl |
| struct | ModuleDecl |
| struct | ModuleMapFile |
| Represents the parsed form of a module map file. More... | |
| struct | RequiresDecl |
| struct | RequiresFeature |
| struct | UmbrellaDirDecl |
| struct | UseDecl |
Typedefs | |
| using | Decl |
| All declarations that can appear in a module declaration. | |
| using | TopLevelDecl = std::variant<ModuleDecl, ExternModuleDecl> |
Functions | |
| std::optional< ModuleMapFile > | parseModuleMap (FileID ID, clang::DirectoryEntryRef Dir, SourceManager &SM, DiagnosticsEngine &Diags, bool IsSystem, unsigned *Offset) |
| Parse a module map file into an in memory representation. | |
| using clang::modulemap::Decl |
All declarations that can appear in a module declaration.
Definition at line 32 of file ModuleMapFile.h.
| using clang::modulemap::TopLevelDecl = std::variant<ModuleDecl, ExternModuleDecl> |
Definition at line 129 of file ModuleMapFile.h.
| std::optional< ModuleMapFile > clang::modulemap::parseModuleMap | ( | FileID | ID, |
| clang::DirectoryEntryRef | Dir, | ||
| SourceManager & | SM, | ||
| DiagnosticsEngine & | Diags, | ||
| bool | IsSystem, | ||
| unsigned * | Offset ) |
Parse a module map file into an in memory representation.
| ID | a valid local FileID. |
| Dir | the directory in which this module map was found. |
| SM | the SourceManager for ID. |
| Diags | where to send the diagnostics. |
| IsSystem | was this module map found in a system search path. |
| Offset | optional offset into the buffer associated with ID. This is used for handling #pragma clang module build. Set to the end of the module map on return. |
Definition at line 148 of file ModuleMapFile.cpp.
References clang::Lexer::getSourceLocation(), clang::LangOptions::LangStd, and SM.
Referenced by clang::ModuleMap::parseAndLoadModuleMapFile(), and clang::ModuleMap::parseModuleMapFile().