clang 22.0.0git
Public Member Functions | Public Attributes | List of all members
clang::modulemap::ModuleMapFile Struct Reference

Represents the parsed form of a module map file. More...

#include "clang/Lex/ModuleMapFile.h"

Public Member Functions

void dump (llvm::raw_ostream &out) const
 

Public Attributes

FileID ID
 The FileID used to parse this module map. This is always a local ID.
 
OptionalDirectoryEntryRef Dir
 The directory in which the module map was discovered.
 
SourceLocation Start
 Beginning of the file, used for moduleMapFileRead callback.
 
bool IsSystem
 
std::vector< TopLevelDeclDecls
 

Detailed Description

Represents the parsed form of a module map file.

This holds many reference types (StringRef, SourceLocation, etc.) whose lifetimes are bound by the SourceManager and FileManager used.

Definition at line 135 of file ModuleMapFile.h.

Member Function Documentation

◆ dump()

void ModuleMapFile::dump ( llvm::raw_ostream &  out) const

Definition at line 1258 of file ModuleMapFile.cpp.

References Decls, dumpExternModule(), dumpModule(), and clang::out.

Member Data Documentation

◆ Decls

std::vector<TopLevelDecl> clang::modulemap::ModuleMapFile::Decls

◆ Dir

OptionalDirectoryEntryRef clang::modulemap::ModuleMapFile::Dir

The directory in which the module map was discovered.

Declarations in the module map are relative to this directory.

Definition at line 141 of file ModuleMapFile.h.

Referenced by clang::ModuleMap::findOrLoadModule().

◆ ID

FileID clang::modulemap::ModuleMapFile::ID

The FileID used to parse this module map. This is always a local ID.

Definition at line 137 of file ModuleMapFile.h.

Referenced by clang::ModuleMap::findOrLoadModule().

◆ IsSystem

bool clang::modulemap::ModuleMapFile::IsSystem

Definition at line 146 of file ModuleMapFile.h.

Referenced by clang::ModuleMap::findOrLoadModule().

◆ Start

SourceLocation clang::modulemap::ModuleMapFile::Start

Beginning of the file, used for moduleMapFileRead callback.

Definition at line 144 of file ModuleMapFile.h.


The documentation for this struct was generated from the following files: