clang 20.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.
 

Friends

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 2074 of file ASTBitCodes.h.

Constructor & Destructor Documentation

◆ DeclarationNameKey() [1/3]

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

◆ DeclarationNameKey() [2/3]

DeclarationNameKey::DeclarationNameKey ( DeclarationName  Name)

◆ DeclarationNameKey() [3/3]

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

Definition at line 2083 of file ASTBitCodes.h.

References Data.

Member Function Documentation

◆ getHash()

unsigned DeclarationNameKey::getHash ( ) const

◆ getIdentifier()

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

◆ getKind()

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

Definition at line 2085 of file ASTBitCodes.h.

◆ getOperatorKind()

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

Definition at line 2101 of file ASTBitCodes.h.

References clang::DeclarationName::CXXOperatorName, and Data.

◆ getSelector()

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

Friends And Related Function Documentation

◆ operator==

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

Definition at line 2109 of file ASTBitCodes.h.


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