clang 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::serialization::reader::ModuleLocalNameLookupTrait Class Reference

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

Inheritance diagram for clang::serialization::reader::ModuleLocalNameLookupTrait:
Inheritance graph
[legend]

Public Types

using external_key_type = std::pair< DeclarationName, const Module * >
 
using internal_key_type = std::pair< DeclarationNameKey, unsigned >
 
- Public Types inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
using data_type = SmallVector< GlobalDeclID, 4 >
 The lookup result is a list of global declaration IDs.
 
using hash_value_type = unsigned
 
using offset_type = unsigned
 
using file_type = ModuleFile *
 

Public Member Functions

 ModuleLocalNameLookupTrait (ASTReader &Reader, ModuleFile &F)
 
internal_key_type ReadKey (const unsigned char *d, unsigned)
 
void ReadDataInto (internal_key_type, const unsigned char *d, unsigned DataLen, data_type_builder &Val)
 
- Public Member Functions inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
void ReadDataIntoImpl (const unsigned char *d, unsigned DataLen, data_type_builder &Val)
 
file_type ReadFileRef (const unsigned char *&d)
 
DeclarationNameKey ReadKeyBase (const unsigned char *&d)
 

Static Public Member Functions

static bool EqualKey (const internal_key_type &a, const internal_key_type &b)
 
static hash_value_type ComputeHash (const internal_key_type &Key)
 
static internal_key_type GetInternalKey (const external_key_type &Key)
 
- Static Public Member Functions inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
static std::pair< unsigned, unsignedReadKeyDataLength (const unsigned char *&d)
 
static void MergeDataInto (const data_type &From, data_type_builder &To)
 

Additional Inherited Members

- Static Public Attributes inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
static const int MaxTables = 4
 
- Protected Member Functions inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
 ASTDeclContextNameLookupTraitBase (ASTReader &Reader, ModuleFile &F)
 
- Protected Attributes inherited from clang::serialization::reader::ASTDeclContextNameLookupTraitBase
ASTReaderReader
 
ModuleFileF
 

Detailed Description

Definition at line 137 of file ASTReaderInternals.h.

Member Typedef Documentation

◆ external_key_type

Definition at line 142 of file ASTReaderInternals.h.

◆ internal_key_type

Definition at line 143 of file ASTReaderInternals.h.

Constructor & Destructor Documentation

◆ ModuleLocalNameLookupTrait()

clang::serialization::reader::ModuleLocalNameLookupTrait::ModuleLocalNameLookupTrait ( ASTReader Reader,
ModuleFile F 
)
inlineexplicit

Definition at line 139 of file ASTReaderInternals.h.

Member Function Documentation

◆ ComputeHash()

ModuleLocalNameLookupTrait::hash_value_type ModuleLocalNameLookupTrait::ComputeHash ( const internal_key_type Key)
static

Definition at line 1310 of file ASTReader.cpp.

◆ EqualKey()

static bool clang::serialization::reader::ModuleLocalNameLookupTrait::EqualKey ( const internal_key_type a,
const internal_key_type b 
)
inlinestatic

Definition at line 145 of file ASTReaderInternals.h.

References b.

◆ GetInternalKey()

ModuleLocalNameLookupTrait::internal_key_type ModuleLocalNameLookupTrait::GetInternalKey ( const external_key_type Key)
static

Definition at line 1318 of file ASTReader.cpp.

References clang::getPrimaryModuleHash().

◆ ReadDataInto()

void ModuleLocalNameLookupTrait::ReadDataInto ( internal_key_type  ,
const unsigned char *  d,
unsigned  DataLen,
data_type_builder Val 
)

Definition at line 1336 of file ASTReader.cpp.

◆ ReadKey()

ModuleLocalNameLookupTrait::internal_key_type ModuleLocalNameLookupTrait::ReadKey ( const unsigned char *  d,
unsigned   
)

Definition at line 1329 of file ASTReader.cpp.


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