clang API Documentation

Classes | Public Types | Public Member Functions | Static Public Member Functions
clang::serialization::reader::ASTDeclContextNameLookupTrait Class Reference

Class that performs name lookup into a DeclContext stored in an AST file. More...

#include <ASTReaderInternals.h>

List of all members.

Classes

struct  DeclNameKey
 Special internal key for declaration names. The hash table creates keys for comparison; we do not create a DeclarationName for the internal key to avoid deserializing types. More...

Public Types

typedef llvm::support::ulittle32_t LE32DeclID
 Pair of begin/end iterators for DeclIDs.
typedef std::pair< LE32DeclID
*, LE32DeclID * > 
data_type
typedef unsigned hash_value_type
typedef unsigned offset_type
typedef DeclarationName external_key_type
typedef DeclNameKey internal_key_type

Public Member Functions

 ASTDeclContextNameLookupTrait (ASTReader &Reader, ModuleFile &F)
hash_value_type ComputeHash (const DeclNameKey &Key) const
internal_key_type GetInternalKey (const external_key_type &Name) const
internal_key_type ReadKey (const unsigned char *d, unsigned)
data_type ReadData (internal_key_type, const unsigned char *d, unsigned DataLen)

Static Public Member Functions

static bool EqualKey (const internal_key_type &a, const internal_key_type &b)
static std::pair< unsigned,
unsigned
ReadKeyDataLength (const unsigned char *&d)

Detailed Description

Class that performs name lookup into a DeclContext stored in an AST file.

Definition at line 37 of file ASTReaderInternals.h.


Member Typedef Documentation

Definition at line 47 of file ASTReaderInternals.h.

Definition at line 60 of file ASTReaderInternals.h.

Definition at line 48 of file ASTReaderInternals.h.

Definition at line 61 of file ASTReaderInternals.h.

Pair of begin/end iterators for DeclIDs.

Note that these declaration IDs are local to the module that contains this particular lookup t

Definition at line 46 of file ASTReaderInternals.h.

Definition at line 49 of file ASTReaderInternals.h.


Constructor & Destructor Documentation

Definition at line 63 of file ASTReaderInternals.h.


Member Function Documentation

Definition at line 955 of file ASTReader.cpp.

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

Definition at line 910 of file ASTReader.cpp.


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