clang  9.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::serialization::ModuleFile Class Reference

Information about a module that has been loaded by the ASTReader. More...

#include "clang/Serialization/Module.h"

Collaboration diagram for clang::serialization::ModuleFile:
Collaboration graph
[legend]

Public Member Functions

 ModuleFile (ModuleKind Kind, unsigned Generation)
 
 ~ModuleFile ()
 
std::string getTimestampFilename () const
 
bool isDirectlyImported () const
 Determine whether this module was directly imported at any point during translation. More...
 
bool isModule () const
 Is this a module file for a module (rather than a PCH or similar). More...
 
void dump ()
 Dump debugging output for this module. More...
 

Public Attributes

unsigned Index = 0
 The index of this module in the list of modules. More...
 
ModuleKind Kind
 The type of this module. More...
 
std::string FileName
 The file name of the module file. More...
 
std::string ModuleName
 The name of the module. More...
 
std::string BaseDirectory
 The base directory of the module. More...
 
std::string OriginalSourceFileName
 The original source file name that was used to build the primary AST file, which may have been modified for relocatable-pch support. More...
 
std::string ActualOriginalSourceFileName
 The actual original source file name that was used to build this AST file. More...
 
FileID OriginalSourceFileID
 The file ID for the original source file that was used to build this AST file. More...
 
std::string OriginalDir
 The directory that the PCH was originally created in. More...
 
std::string ModuleMapPath
 
bool RelocatablePCH = false
 Whether this precompiled header is a relocatable PCH file. More...
 
bool HasTimestamps = false
 Whether timestamps are included in this module file. More...
 
bool PCHHasObjectFile = false
 Whether the PCH has a corresponding object file. More...
 
const FileEntryFile = nullptr
 The file entry for the module file. More...
 
ASTFileSignature Signature
 The signature of the module file, which may be used instead of the size and modification time to identify this particular file. More...
 
bool DirectlyImported = false
 Whether this module has been directly imported by the user. More...
 
unsigned Generation
 The generation of which this module file is a part. More...
 
llvm::MemoryBuffer * Buffer
 The memory buffer that stores the data associated with this AST file, owned by the InMemoryModuleCache. More...
 
uint64_t SizeInBits = 0
 The size of this file, in bits. More...
 
uint64_t GlobalBitOffset = 0
 The global bit offset (or base) of this module. More...
 
StringRef Data
 The serialized bitstream data for this file. More...
 
llvm::BitstreamCursor Stream
 The main bitstream cursor for the main block. More...
 
SourceLocation DirectImportLoc
 The source location where the module was explicitly or implicitly imported in the local translation unit. More...
 
SourceLocation ImportLoc
 The source location where this module was first imported. More...
 
SourceLocation FirstLoc
 The first source location in this module. More...
 
std::vector< std::unique_ptr< ModuleFileExtensionReader > > ExtensionReaders
 The list of extension readers that are attached to this module file. More...
 
StringRef ModuleOffsetMap
 The module offset map data for this file. More...
 
llvm::BitstreamCursor InputFilesCursor
 The cursor to the start of the input-files block. More...
 
const llvm::support::unaligned_uint64_t * InputFileOffsets = nullptr
 Offsets for all of the input file entries in the AST file. More...
 
std::vector< InputFileInputFilesLoaded
 The input files that have been loaded from this AST file. More...
 
unsigned NumUserInputFiles = 0
 
uint64_t InputFilesValidationTimestamp = 0
 If non-zero, specifies the time when we last validated input files. More...
 
llvm::BitstreamCursor SLocEntryCursor
 Cursor used to read source location entries. More...
 
unsigned LocalNumSLocEntries = 0
 The number of source location entries in this AST file. More...
 
int SLocEntryBaseID = 0
 The base ID in the source manager's view of this module. More...
 
unsigned SLocEntryBaseOffset = 0
 The base offset in the source manager's view of this module. More...
 
const uint32_t * SLocEntryOffsets = nullptr
 Offsets for all of the source location entries in the AST file. More...
 
SmallVector< uint64_t, 4 > PreloadSLocEntries
 SLocEntries that we're going to preload. More...
 
ContinuousRangeMap< uint32_t, int, 2 > SLocRemap
 Remapping table for source locations in this module. More...
 
unsigned LocalNumIdentifiers = 0
 The number of identifiers in this AST file. More...
 
const uint32_t * IdentifierOffsets = nullptr
 Offsets into the identifier table data. More...
 
serialization::IdentID BaseIdentifierID = 0
 Base identifier ID for identifiers local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > IdentifierRemap
 Remapping table for identifier IDs in this module. More...
 
const char * IdentifierTableData = nullptr
 Actual data for the on-disk hash table of identifiers. More...
 
void * IdentifierLookupTable = nullptr
 A pointer to an on-disk hash table of opaque type IdentifierHashTable. More...
 
std::vector< unsigned > PreloadIdentifierOffsets
 Offsets of identifiers that we're going to preload within IdentifierTableData. More...
 
llvm::BitstreamCursor MacroCursor
 The cursor to the start of the preprocessor block, which stores all of the macro definitions. More...
 
unsigned LocalNumMacros = 0
 The number of macros in this AST file. More...
 
const uint32_t * MacroOffsets = nullptr
 Offsets of macros in the preprocessor block. More...
 
serialization::MacroID BaseMacroID = 0
 Base macro ID for macros local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > MacroRemap
 Remapping table for macro IDs in this module. More...
 
uint64_t MacroStartOffset = 0
 The offset of the start of the set of defined macros. More...
 
llvm::BitstreamCursor PreprocessorDetailCursor
 The cursor to the start of the (optional) detailed preprocessing record block. More...
 
uint64_t PreprocessorDetailStartOffset = 0
 The offset of the start of the preprocessor detail cursor. More...
 
serialization::PreprocessedEntityID BasePreprocessedEntityID = 0
 Base preprocessed entity ID for preprocessed entities local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > PreprocessedEntityRemap
 Remapping table for preprocessed entity IDs in this module. More...
 
const PPEntityOffsetPreprocessedEntityOffsets = nullptr
 
unsigned NumPreprocessedEntities = 0
 
unsigned BasePreprocessedSkippedRangeID = 0
 Base ID for preprocessed skipped ranges local to this module. More...
 
const PPSkippedRangePreprocessedSkippedRangeOffsets = nullptr
 
unsigned NumPreprocessedSkippedRanges = 0
 
unsigned LocalNumHeaderFileInfos = 0
 The number of local HeaderFileInfo structures. More...
 
const char * HeaderFileInfoTableData = nullptr
 Actual data for the on-disk hash table of header file information. More...
 
void * HeaderFileInfoTable = nullptr
 The on-disk hash table that contains information about each of the header files. More...
 
unsigned LocalNumSubmodules = 0
 The number of submodules in this module. More...
 
serialization::SubmoduleID BaseSubmoduleID = 0
 Base submodule ID for submodules local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > SubmoduleRemap
 Remapping table for submodule IDs in this module. More...
 
unsigned LocalNumSelectors = 0
 The number of selectors new to this file. More...
 
const uint32_t * SelectorOffsets = nullptr
 Offsets into the selector lookup table's data array where each selector resides. More...
 
serialization::SelectorID BaseSelectorID = 0
 Base selector ID for selectors local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > SelectorRemap
 Remapping table for selector IDs in this module. More...
 
const unsigned char * SelectorLookupTableData = nullptr
 A pointer to the character data that comprises the selector table. More...
 
void * SelectorLookupTable = nullptr
 A pointer to an on-disk hash table of opaque type ASTSelectorLookupTable. More...
 
llvm::BitstreamCursor DeclsCursor
 DeclsCursor - This is a cursor to the start of the DECLS_BLOCK block. More...
 
unsigned LocalNumDecls = 0
 The number of declarations in this AST file. More...
 
const DeclOffsetDeclOffsets = nullptr
 Offset of each declaration within the bitstream, indexed by the declaration ID (-1). More...
 
serialization::DeclID BaseDeclID = 0
 Base declaration ID for declarations local to this module. More...
 
ContinuousRangeMap< uint32_t, int, 2 > DeclRemap
 Remapping table for declaration IDs in this module. More...
 
llvm::DenseMap< ModuleFile *, serialization::DeclIDGlobalToLocalDeclIDs
 Mapping from the module files that this module file depends on to the base declaration ID for that module as it is understood within this module. More...
 
const serialization::DeclIDFileSortedDecls = nullptr
 Array of file-level DeclIDs sorted by file. More...
 
unsigned NumFileSortedDecls = 0
 
const serialization::ObjCCategoriesInfoObjCCategoriesMap = nullptr
 Array of category list location information within this module file, sorted by the definition ID. More...
 
unsigned LocalNumObjCCategoriesInMap = 0
 The number of redeclaration info entries in ObjCCategoriesMap. More...
 
SmallVector< uint64_t, 1 > ObjCCategories
 The Objective-C category lists for categories known to this module. More...
 
unsigned LocalNumTypes = 0
 The number of types in this AST file. More...
 
const uint32_t * TypeOffsets = nullptr
 Offset of each type within the bitstream, indexed by the type ID, or the representation of a Type*. More...
 
serialization::TypeID BaseTypeIndex = 0
 Base type ID for types local to this module as represented in the global type ID space. More...
 
ContinuousRangeMap< uint32_t, int, 2 > TypeRemap
 Remapping table for type IDs in this module. More...
 
SmallVector< uint64_t, 8 > PragmaDiagMappings
 Diagnostic IDs and their mappings that the user changed. More...
 
llvm::SetVector< ModuleFile * > ImportedBy
 List of modules which depend on this module. More...
 
llvm::SetVector< ModuleFile * > Imports
 List of modules which this module depends on. More...
 

Detailed Description

Information about a module that has been loaded by the ASTReader.

Each instance of the Module class corresponds to a single AST file, which may be a precompiled header, precompiled preamble, a module, or an AST file of some sort loaded as the main file, all of which are specific formulations of the general notion of a "module". A module may depend on any number of other modules.

Definition at line 107 of file Module.h.

Constructor & Destructor Documentation

◆ ModuleFile()

clang::serialization::ModuleFile::ModuleFile ( ModuleKind  Kind,
unsigned  Generation 
)
inline

Definition at line 109 of file Module.h.

◆ ~ModuleFile()

ModuleFile::~ModuleFile ( )

Definition at line 25 of file Module.cpp.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void ModuleFile::dump ( )

Dump debugging output for this module.

Definition at line 47 of file Module.cpp.

References dumpLocalRemap().

Referenced by clang::ASTReader::dump().

◆ getTimestampFilename()

std::string clang::serialization::ModuleFile::getTimestampFilename ( ) const
inline

Definition at line 130 of file Module.h.

Referenced by updateModuleTimestamp().

◆ isDirectlyImported()

bool clang::serialization::ModuleFile::isDirectlyImported ( ) const
inline

Determine whether this module was directly imported at any point during translation.

Definition at line 473 of file Module.h.

◆ isModule()

bool clang::serialization::ModuleFile::isModule ( ) const
inline

Member Data Documentation

◆ ActualOriginalSourceFileName

std::string clang::serialization::ModuleFile::ActualOriginalSourceFileName

The actual original source file name that was used to build this AST file.

Definition at line 141 of file Module.h.

Referenced by isDiagnosedResult().

◆ BaseDeclID

serialization::DeclID clang::serialization::ModuleFile::BaseDeclID = 0

Base declaration ID for declarations local to this module.

Definition at line 415 of file Module.h.

Referenced by AddLazyVectorDecls(), clang::ASTReader::isDeclIDFromModule(), and isDiagnosedResult().

◆ BaseDirectory

std::string clang::serialization::ModuleFile::BaseDirectory

The base directory of the module.

Definition at line 128 of file Module.h.

Referenced by isDiagnosedResult(), clang::ASTReader::ResolveImportedPath(), and clang::ASTReader::resolvePendingMacro().

◆ BaseIdentifierID

serialization::IdentID clang::serialization::ModuleFile::BaseIdentifierID = 0

Base identifier ID for identifiers local to this module.

Definition at line 275 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ BaseMacroID

serialization::MacroID clang::serialization::ModuleFile::BaseMacroID = 0

Base macro ID for macros local to this module.

Definition at line 311 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ BasePreprocessedEntityID

serialization::PreprocessedEntityID clang::serialization::ModuleFile::BasePreprocessedEntityID = 0

Base preprocessed entity ID for preprocessed entities local to this module.

Definition at line 330 of file Module.h.

Referenced by AddLazyVectorDecls(), clang::ASTReader::isAcceptableASTFile(), and isDiagnosedResult().

◆ BasePreprocessedSkippedRangeID

unsigned clang::serialization::ModuleFile::BasePreprocessedSkippedRangeID = 0

Base ID for preprocessed skipped ranges local to this module.

Definition at line 339 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::ReadSkippedRange().

◆ BaseSelectorID

serialization::SelectorID clang::serialization::ModuleFile::BaseSelectorID = 0

Base selector ID for selectors local to this module.

Definition at line 383 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ BaseSubmoduleID

serialization::SubmoduleID clang::serialization::ModuleFile::BaseSubmoduleID = 0

Base submodule ID for submodules local to this module.

Definition at line 366 of file Module.h.

Referenced by AddLazyVectorDecls(), clang::ASTReader::getModuleFileID(), clang::ASTReader::isAcceptableASTFile(), and isDiagnosedResult().

◆ BaseTypeIndex

serialization::TypeID clang::serialization::ModuleFile::BaseTypeIndex = 0

Base type ID for types local to this module as represented in the global type ID space.

Definition at line 455 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ Buffer

llvm::MemoryBuffer* clang::serialization::ModuleFile::Buffer

The memory buffer that stores the data associated with this AST file, owned by the InMemoryModuleCache.

Definition at line 178 of file Module.h.

◆ Data

StringRef clang::serialization::ModuleFile::Data

The serialized bitstream data for this file.

Definition at line 187 of file Module.h.

Referenced by moduleKindForDiagnostic().

◆ DeclOffsets

const DeclOffset* clang::serialization::ModuleFile::DeclOffsets = nullptr

Offset of each declaration within the bitstream, indexed by the declaration ID (-1).

Definition at line 412 of file Module.h.

Referenced by isDiagnosedResult().

◆ DeclRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::DeclRemap

Remapping table for declaration IDs in this module.

Definition at line 418 of file Module.h.

Referenced by clang::ASTReader::getGlobalDeclID(), and isDiagnosedResult().

◆ DeclsCursor

llvm::BitstreamCursor clang::serialization::ModuleFile::DeclsCursor

DeclsCursor - This is a cursor to the start of the DECLS_BLOCK block.

It has read all the abbreviations at the start of the block and is ready to jump around with these in context.

Definition at line 405 of file Module.h.

Referenced by isDiagnosedResult(), clang::ASTRecordReader::readLexicalDeclContextStorage(), clang::ASTReader::ReadSubExpr(), and clang::ASTRecordReader::readVisibleDeclContextStorage().

◆ DirectImportLoc

SourceLocation clang::serialization::ModuleFile::DirectImportLoc

The source location where the module was explicitly or implicitly imported in the local translation unit.

If module A depends on and imports module B, both modules will have the same DirectImportLoc, but different ImportLoc (B's ImportLoc will be a source location inside module A).

WARNING: This is largely useless. It doesn't tell you when a module was made visible, just when the first submodule of that module was imported.

Definition at line 201 of file Module.h.

◆ DirectlyImported

bool clang::serialization::ModuleFile::DirectlyImported = false

Whether this module has been directly imported by the user.

Definition at line 171 of file Module.h.

Referenced by updateModuleImports().

◆ ExtensionReaders

std::vector<std::unique_ptr<ModuleFileExtensionReader> > clang::serialization::ModuleFile::ExtensionReaders

The list of extension readers that are attached to this module file.

Definition at line 211 of file Module.h.

Referenced by parseModuleFileExtensionMetadata().

◆ File

const FileEntry* clang::serialization::ModuleFile::File = nullptr

The file entry for the module file.

Definition at line 163 of file Module.h.

Referenced by clang::ASTUnit::getPCHFile(), clang::ASTReader::isAcceptableASTFile(), and clang::GlobalModuleIndex::loadedModuleFile().

◆ FileName

std::string clang::serialization::ModuleFile::FileName

◆ FileSortedDecls

const serialization::DeclID* clang::serialization::ModuleFile::FileSortedDecls = nullptr

Array of file-level DeclIDs sorted by file.

Definition at line 430 of file Module.h.

Referenced by clang::ASTReader::getModuleFileLevelDecls(), isDiagnosedResult(), and clang::ASTReader::ReadSLocEntry().

◆ FirstLoc

SourceLocation clang::serialization::ModuleFile::FirstLoc

The first source location in this module.

Definition at line 207 of file Module.h.

Referenced by isDiagnosedResult().

◆ Generation

unsigned clang::serialization::ModuleFile::Generation

The generation of which this module file is a part.

Definition at line 174 of file Module.h.

Referenced by clang::serialization::ReadMethodPoolVisitor::operator()(), and clang::ASTReader::ReadDefinedMacros().

◆ GlobalBitOffset

uint64_t clang::serialization::ModuleFile::GlobalBitOffset = 0

The global bit offset (or base) of this module.

Definition at line 184 of file Module.h.

Referenced by isConsumerInterestedIn(), and clang::ASTReader::ReadAST().

◆ GlobalToLocalDeclIDs

llvm::DenseMap<ModuleFile *, serialization::DeclID> clang::serialization::ModuleFile::GlobalToLocalDeclIDs

Mapping from the module files that this module file depends on to the base declaration ID for that module as it is understood within this module.

This is effectively a reverse global-to-local mapping for declaration IDs, so that we can interpret a true global ID (for this translation unit) as a local ID (for this module file).

Definition at line 427 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::mapGlobalIDToModuleFileGlobalID().

◆ HasTimestamps

bool clang::serialization::ModuleFile::HasTimestamps = false

Whether timestamps are included in this module file.

Definition at line 157 of file Module.h.

Referenced by clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey(), and isDiagnosedResult().

◆ HeaderFileInfoTable

void* clang::serialization::ModuleFile::HeaderFileInfoTable = nullptr

The on-disk hash table that contains information about each of the header files.

Definition at line 358 of file Module.h.

Referenced by isDiagnosedResult().

◆ HeaderFileInfoTableData

const char* clang::serialization::ModuleFile::HeaderFileInfoTableData = nullptr

Actual data for the on-disk hash table of header file information.

This pointer points into a memory buffer, where the on-disk hash table for header file information actually lives.

Definition at line 354 of file Module.h.

Referenced by isDiagnosedResult().

◆ IdentifierLookupTable

void* clang::serialization::ModuleFile::IdentifierLookupTable = nullptr

A pointer to an on-disk hash table of opaque type IdentifierHashTable.

Definition at line 288 of file Module.h.

Referenced by isDiagnosedResult(), clang::ASTIdentifierIterator::Next(), and clang::ASTReader::ReadDefinedMacros().

◆ IdentifierOffsets

const uint32_t* clang::serialization::ModuleFile::IdentifierOffsets = nullptr

Offsets into the identifier table data.

This array is indexed by the identifier ID (-1), and provides the offset into IdentifierTableData where the string data is stored.

Definition at line 272 of file Module.h.

Referenced by isDiagnosedResult().

◆ IdentifierRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::IdentifierRemap

Remapping table for identifier IDs in this module.

Definition at line 278 of file Module.h.

Referenced by clang::ASTReader::getGlobalIdentifierID(), and isDiagnosedResult().

◆ IdentifierTableData

const char* clang::serialization::ModuleFile::IdentifierTableData = nullptr

Actual data for the on-disk hash table of identifiers.

This pointer points into a memory buffer, where the on-disk hash table for identifiers actually lives.

Definition at line 284 of file Module.h.

Referenced by isDiagnosedResult().

◆ ImportedBy

llvm::SetVector<ModuleFile *> clang::serialization::ModuleFile::ImportedBy

List of modules which depend on this module.

Definition at line 466 of file Module.h.

Referenced by clang::ASTReader::getModuleImportLoc(), getTopImportImplicitModule(), updateModuleImports(), and clang::serialization::ModuleManager::visit().

◆ ImportLoc

SourceLocation clang::serialization::ModuleFile::ImportLoc

The source location where this module was first imported.

Definition at line 204 of file Module.h.

Referenced by clang::TestModuleFileExtension::createExtensionReader(), clang::ASTReader::getModuleImportLoc(), and updateModuleImports().

◆ Imports

llvm::SetVector<ModuleFile *> clang::serialization::ModuleFile::Imports

◆ Index

unsigned clang::serialization::ModuleFile::Index = 0

The index of this module in the list of modules.

Definition at line 116 of file Module.h.

Referenced by clang::serialization::ModuleManager::visit().

◆ InputFileOffsets

const llvm::support::unaligned_uint64_t* clang::serialization::ModuleFile::InputFileOffsets = nullptr

Offsets for all of the input file entries in the AST file.

Definition at line 223 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::resolvePendingMacro().

◆ InputFilesCursor

llvm::BitstreamCursor clang::serialization::ModuleFile::InputFilesCursor

The cursor to the start of the input-files block.

Definition at line 220 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::resolvePendingMacro().

◆ InputFilesLoaded

std::vector<InputFile> clang::serialization::ModuleFile::InputFilesLoaded

The input files that have been loaded from this AST file.

Definition at line 226 of file Module.h.

Referenced by isDiagnosedResult(), clang::ASTReader::resolvePendingMacro(), clang::ASTReader::visitInputFiles(), and clang::ASTReader::visitTopLevelModuleMaps().

◆ InputFilesValidationTimestamp

uint64_t clang::serialization::ModuleFile::InputFilesValidationTimestamp = 0

If non-zero, specifies the time when we last validated input files.

Zero means we never validated them.

The time is specified in seconds since the start of the Epoch.

Definition at line 236 of file Module.h.

Referenced by isDiagnosedResult().

◆ Kind

ModuleKind clang::serialization::ModuleFile::Kind

◆ LocalNumDecls

unsigned clang::serialization::ModuleFile::LocalNumDecls = 0

The number of declarations in this AST file.

Definition at line 408 of file Module.h.

Referenced by AddLazyVectorDecls(), clang::ASTReader::isDeclIDFromModule(), and isDiagnosedResult().

◆ LocalNumHeaderFileInfos

unsigned clang::serialization::ModuleFile::LocalNumHeaderFileInfos = 0

The number of local HeaderFileInfo structures.

Definition at line 347 of file Module.h.

Referenced by isDiagnosedResult().

◆ LocalNumIdentifiers

unsigned clang::serialization::ModuleFile::LocalNumIdentifiers = 0

The number of identifiers in this AST file.

Definition at line 265 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ LocalNumMacros

unsigned clang::serialization::ModuleFile::LocalNumMacros = 0

The number of macros in this AST file.

Definition at line 301 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ LocalNumObjCCategoriesInMap

unsigned clang::serialization::ModuleFile::LocalNumObjCCategoriesInMap = 0

The number of redeclaration info entries in ObjCCategoriesMap.

Definition at line 438 of file Module.h.

Referenced by isDiagnosedResult().

◆ LocalNumSelectors

unsigned clang::serialization::ModuleFile::LocalNumSelectors = 0

The number of selectors new to this file.

This is the number of entries in SelectorOffsets.

Definition at line 376 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ LocalNumSLocEntries

unsigned clang::serialization::ModuleFile::LocalNumSLocEntries = 0

The number of source location entries in this AST file.

Definition at line 244 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ LocalNumSubmodules

unsigned clang::serialization::ModuleFile::LocalNumSubmodules = 0

The number of submodules in this module.

Definition at line 363 of file Module.h.

Referenced by AddLazyVectorDecls(), and clang::ASTReader::isAcceptableASTFile().

◆ LocalNumTypes

unsigned clang::serialization::ModuleFile::LocalNumTypes = 0

The number of types in this AST file.

Definition at line 447 of file Module.h.

Referenced by AddLazyVectorDecls(), and isDiagnosedResult().

◆ MacroCursor

llvm::BitstreamCursor clang::serialization::ModuleFile::MacroCursor

The cursor to the start of the preprocessor block, which stores all of the macro definitions.

Definition at line 298 of file Module.h.

Referenced by isDiagnosedResult(), clang::ASTReader::ReadMacroRecord(), and clang::ASTReader::resolvePendingMacro().

◆ MacroOffsets

const uint32_t* clang::serialization::ModuleFile::MacroOffsets = nullptr

Offsets of macros in the preprocessor block.

This array is indexed by the macro ID (-1), and provides the offset into the preprocessor block where macro definitions are stored.

Definition at line 308 of file Module.h.

Referenced by isDiagnosedResult().

◆ MacroRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::MacroRemap

Remapping table for macro IDs in this module.

Definition at line 314 of file Module.h.

Referenced by clang::ASTReader::getGlobalMacroID(), and isDiagnosedResult().

◆ MacroStartOffset

uint64_t clang::serialization::ModuleFile::MacroStartOffset = 0

The offset of the start of the set of defined macros.

Definition at line 317 of file Module.h.

Referenced by isDiagnosedResult().

◆ ModuleMapPath

std::string clang::serialization::ModuleFile::ModuleMapPath

Definition at line 151 of file Module.h.

Referenced by clang::ASTReader::isAcceptableASTFile(), and isDiagnosedResult().

◆ ModuleName

std::string clang::serialization::ModuleFile::ModuleName

◆ ModuleOffsetMap

StringRef clang::serialization::ModuleFile::ModuleOffsetMap

◆ NumFileSortedDecls

unsigned clang::serialization::ModuleFile::NumFileSortedDecls = 0

Definition at line 431 of file Module.h.

Referenced by clang::ASTReader::getModuleFileLevelDecls(), and isDiagnosedResult().

◆ NumPreprocessedEntities

unsigned clang::serialization::ModuleFile::NumPreprocessedEntities = 0

◆ NumPreprocessedSkippedRanges

unsigned clang::serialization::ModuleFile::NumPreprocessedSkippedRanges = 0

Definition at line 342 of file Module.h.

Referenced by isDiagnosedResult().

◆ NumUserInputFiles

unsigned clang::serialization::ModuleFile::NumUserInputFiles = 0

Definition at line 230 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::visitInputFiles().

◆ ObjCCategories

SmallVector<uint64_t, 1> clang::serialization::ModuleFile::ObjCCategories

The Objective-C category lists for categories known to this module.

Definition at line 442 of file Module.h.

Referenced by isDiagnosedResult().

◆ ObjCCategoriesMap

const serialization::ObjCCategoriesInfo* clang::serialization::ModuleFile::ObjCCategoriesMap = nullptr

Array of category list location information within this module file, sorted by the definition ID.

Definition at line 435 of file Module.h.

Referenced by isDiagnosedResult().

◆ OriginalDir

std::string clang::serialization::ModuleFile::OriginalDir

The directory that the PCH was originally created in.

Used to allow resolving headers even after headers+PCH was moved to a new path.

Definition at line 149 of file Module.h.

Referenced by clang::ASTReader::getSourceDescriptor(), isDiagnosedResult(), and clang::ASTReader::resolvePendingMacro().

◆ OriginalSourceFileID

FileID clang::serialization::ModuleFile::OriginalSourceFileID

The file ID for the original source file that was used to build this AST file.

Definition at line 145 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::ReadPragmaDiagnosticMappings().

◆ OriginalSourceFileName

std::string clang::serialization::ModuleFile::OriginalSourceFileName

The original source file name that was used to build the primary AST file, which may have been modified for relocatable-pch support.

Definition at line 137 of file Module.h.

Referenced by clang::ASTReader::getOriginalSourceFile(), clang::ASTReader::getSourceDescriptor(), and isDiagnosedResult().

◆ PCHHasObjectFile

bool clang::serialization::ModuleFile::PCHHasObjectFile = false

Whether the PCH has a corresponding object file.

Definition at line 160 of file Module.h.

Referenced by clang::ASTReader::DeclIsFromPCHWithObjectFile(), and isDiagnosedResult().

◆ PragmaDiagMappings

SmallVector<uint64_t, 8> clang::serialization::ModuleFile::PragmaDiagMappings

Diagnostic IDs and their mappings that the user changed.

Definition at line 463 of file Module.h.

Referenced by moduleKindForDiagnostic(), and clang::ASTReader::ReadPragmaDiagnosticMappings().

◆ PreloadIdentifierOffsets

std::vector<unsigned> clang::serialization::ModuleFile::PreloadIdentifierOffsets

Offsets of identifiers that we're going to preload within IdentifierTableData.

Definition at line 292 of file Module.h.

Referenced by isDiagnosedResult().

◆ PreloadSLocEntries

SmallVector<uint64_t, 4> clang::serialization::ModuleFile::PreloadSLocEntries

SLocEntries that we're going to preload.

Definition at line 257 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::ReadAST().

◆ PreprocessedEntityOffsets

const PPEntityOffset* clang::serialization::ModuleFile::PreprocessedEntityOffsets = nullptr

Definition at line 335 of file Module.h.

Referenced by isDiagnosedResult().

◆ PreprocessedEntityRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::PreprocessedEntityRemap

Remapping table for preprocessed entity IDs in this module.

Definition at line 333 of file Module.h.

Referenced by clang::ASTReader::getGlobalPreprocessedEntityID(), and isDiagnosedResult().

◆ PreprocessedSkippedRangeOffsets

const PPSkippedRange* clang::serialization::ModuleFile::PreprocessedSkippedRangeOffsets = nullptr

Definition at line 341 of file Module.h.

Referenced by isDiagnosedResult().

◆ PreprocessorDetailCursor

llvm::BitstreamCursor clang::serialization::ModuleFile::PreprocessorDetailCursor

The cursor to the start of the (optional) detailed preprocessing record block.

Definition at line 323 of file Module.h.

Referenced by isDiagnosedResult().

◆ PreprocessorDetailStartOffset

uint64_t clang::serialization::ModuleFile::PreprocessorDetailStartOffset = 0

The offset of the start of the preprocessor detail cursor.

Definition at line 326 of file Module.h.

Referenced by isDiagnosedResult().

◆ RelocatablePCH

bool clang::serialization::ModuleFile::RelocatablePCH = false

Whether this precompiled header is a relocatable PCH file.

Definition at line 154 of file Module.h.

Referenced by isDiagnosedResult().

◆ SelectorLookupTable

void* clang::serialization::ModuleFile::SelectorLookupTable = nullptr

A pointer to an on-disk hash table of opaque type ASTSelectorLookupTable.

This hash table provides the IDs of all selectors, and the associated instance and factory methods.

Definition at line 398 of file Module.h.

Referenced by isDiagnosedResult(), and clang::serialization::ReadMethodPoolVisitor::operator()().

◆ SelectorLookupTableData

const unsigned char* clang::serialization::ModuleFile::SelectorLookupTableData = nullptr

A pointer to the character data that comprises the selector table.

The SelectorOffsets table refers into this memory.

Definition at line 391 of file Module.h.

Referenced by isDiagnosedResult().

◆ SelectorOffsets

const uint32_t* clang::serialization::ModuleFile::SelectorOffsets = nullptr

Offsets into the selector lookup table's data array where each selector resides.

Definition at line 380 of file Module.h.

Referenced by isDiagnosedResult().

◆ SelectorRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SelectorRemap

Remapping table for selector IDs in this module.

Definition at line 386 of file Module.h.

Referenced by clang::ASTReader::getGlobalSelectorID(), and isDiagnosedResult().

◆ Signature

ASTFileSignature clang::serialization::ModuleFile::Signature

The signature of the module file, which may be used instead of the size and modification time to identify this particular file.

Definition at line 167 of file Module.h.

Referenced by clang::ASTReader::getSourceDescriptor(), clang::ASTReader::isAcceptableASTFile(), and moduleKindForDiagnostic().

◆ SizeInBits

uint64_t clang::serialization::ModuleFile::SizeInBits = 0

The size of this file, in bits.

Definition at line 181 of file Module.h.

Referenced by clang::ASTReader::ReadAST().

◆ SLocEntryBaseID

int clang::serialization::ModuleFile::SLocEntryBaseID = 0

The base ID in the source manager's view of this module.

Definition at line 247 of file Module.h.

Referenced by isDiagnosedResult(), clang::serialization::reader::ASTDeclContextNameLookupTrait::ReadDataInto(), and clang::ASTReader::ReadSLocEntry().

◆ SLocEntryBaseOffset

unsigned clang::serialization::ModuleFile::SLocEntryBaseOffset = 0

The base offset in the source manager's view of this module.

Definition at line 250 of file Module.h.

Referenced by AddLazyVectorDecls(), isDiagnosedResult(), and clang::ASTReader::ReadSLocEntry().

◆ SLocEntryCursor

llvm::BitstreamCursor clang::serialization::ModuleFile::SLocEntryCursor

Cursor used to read source location entries.

Definition at line 241 of file Module.h.

Referenced by clang::serialization::reader::ASTDeclContextNameLookupTrait::ReadDataInto(), and clang::ASTReader::ReadSLocEntry().

◆ SLocEntryOffsets

const uint32_t* clang::serialization::ModuleFile::SLocEntryOffsets = nullptr

Offsets for all of the source location entries in the AST file.

Definition at line 254 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::ReadSLocEntry().

◆ SLocRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SLocRemap

Remapping table for source locations in this module.

Definition at line 260 of file Module.h.

Referenced by isDiagnosedResult(), and clang::ASTReader::TranslateSourceLocation().

◆ Stream

llvm::BitstreamCursor clang::serialization::ModuleFile::Stream

◆ SubmoduleRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SubmoduleRemap

Remapping table for submodule IDs in this module.

Definition at line 369 of file Module.h.

Referenced by clang::ASTReader::getGlobalSubmoduleID(), clang::ASTReader::isAcceptableASTFile(), and isDiagnosedResult().

◆ TypeOffsets

const uint32_t* clang::serialization::ModuleFile::TypeOffsets = nullptr

Offset of each type within the bitstream, indexed by the type ID, or the representation of a Type*.

Definition at line 451 of file Module.h.

Referenced by isDiagnosedResult().

◆ TypeRemap

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::TypeRemap

Remapping table for type IDs in this module.

Definition at line 458 of file Module.h.

Referenced by clang::ASTReader::getGlobalTypeID(), and isDiagnosedResult().


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