clang 22.0.0git
clang::serialization::reader::HeaderFileInfoTrait Class Reference

Trait class used to search the on-disk hash table containing all of the header search information. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Serialization/ASTReaderInternals.h"

Classes

struct  internal_key_type

Public Types

using external_key_type = FileEntryRef
using internal_key_ref = const internal_key_type &
using data_type = HeaderFileInfo
using hash_value_type = unsigned
using offset_type = unsigned

Public Member Functions

 HeaderFileInfoTrait (ASTReader &Reader, ModuleFile &M)
internal_key_type GetInternalKey (external_key_type ekey)
bool EqualKey (internal_key_ref a, internal_key_ref b)
data_type ReadData (internal_key_ref, const unsigned char *d, unsigned DataLen)

Static Public Member Functions

static hash_value_type ComputeHash (internal_key_ref ikey)
static std::pair< unsigned, unsignedReadKeyDataLength (const unsigned char *&d)
static internal_key_type ReadKey (const unsigned char *d, unsigned)

Detailed Description

Trait class used to search the on-disk hash table containing all of the header search information.

The on-disk hash table contains a mapping from each header path to information about that header (how many times it has been included, its controlling macro, etc.). Note that we actually hash based on the size and mtime, and support "deep" comparisons of file names based on current inode numbers, so that the search can cope with non-normalized path names and symlinks.

Definition at line 371 of file ASTReaderInternals.h.

Member Typedef Documentation

◆ data_type

◆ external_key_type

◆ hash_value_type

◆ internal_key_ref

◆ offset_type

Constructor & Destructor Documentation

◆ HeaderFileInfoTrait()

clang::serialization::reader::HeaderFileInfoTrait::HeaderFileInfoTrait ( ASTReader & Reader,
ModuleFile & M )
inline

Definition at line 391 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

◆ EqualKey()

◆ GetInternalKey()

◆ ReadData()

◆ ReadKey()

◆ ReadKeyDataLength()

std::pair< unsigned, unsigned > HeaderFileInfoTrait::ReadKeyDataLength ( const unsigned char *& d)
static

Definition at line 2316 of file ASTReader.cpp.

References ReadKeyDataLength(), and readULEBKeyDataLength().

Referenced by ReadKeyDataLength().


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