clang  13.0.0git
Public Member Functions | Friends | List of all members
clang::serialization::DeclarationNameKey Class Reference

A key used when looking up entities by DeclarationName. More...

#include "clang/Serialization/ASTBitCodes.h"

Public Member Functions

 DeclarationNameKey ()=default
 DeclarationNameKey (DeclarationName Name)
 DeclarationNameKey (NameKind Kind, uint64_t Data)
NameKind getKind () const
IdentifierInfogetIdentifier () const
Selector getSelector () const
OverloadedOperatorKind getOperatorKind () const
unsigned getHash () const
 Compute a fingerprint of this key for use in on-disk hash table. More...


bool operator== (const DeclarationNameKey &A, const DeclarationNameKey &B)

Detailed Description

A key used when looking up entities by DeclarationName.

Different DeclarationNames are mapped to different keys, but the same key can occasionally represent multiple names (for names that contain types, in particular).

Definition at line 2057 of file ASTBitCodes.h.

Constructor & Destructor Documentation

◆ DeclarationNameKey() [1/3]

clang::serialization::DeclarationNameKey::DeclarationNameKey ( )

◆ DeclarationNameKey() [2/3]

DeclarationNameKey::DeclarationNameKey ( DeclarationName  Name)

Definition at line 1039 of file ASTReader.cpp.

◆ DeclarationNameKey() [3/3]

clang::serialization::DeclarationNameKey::DeclarationNameKey ( NameKind  Kind,
uint64_t  Data 

Definition at line 2066 of file ASTBitCodes.h.

Member Function Documentation

◆ getHash()

unsigned DeclarationNameKey::getHash ( ) const

◆ getIdentifier()

IdentifierInfo* clang::serialization::DeclarationNameKey::getIdentifier ( ) const

◆ getKind()

NameKind clang::serialization::DeclarationNameKey::getKind ( ) const

Definition at line 2068 of file ASTBitCodes.h.

◆ getOperatorKind()

OverloadedOperatorKind clang::serialization::DeclarationNameKey::getOperatorKind ( ) const

Definition at line 2084 of file ASTBitCodes.h.

References clang::DeclarationName::CXXOperatorName.

◆ getSelector()

Selector clang::serialization::DeclarationNameKey::getSelector ( ) const

Friends And Related Function Documentation

◆ operator==

bool operator== ( const DeclarationNameKey A,
const DeclarationNameKey B 

Definition at line 2092 of file ASTBitCodes.h.

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