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


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

Constructor & Destructor Documentation

◆ DeclarationNameKey() [1/3]

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

◆ DeclarationNameKey() [2/3]

DeclarationNameKey::DeclarationNameKey ( DeclarationName  Name)

◆ DeclarationNameKey() [3/3]

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

Definition at line 2023 of file ASTBitCodes.h.

References Data.

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

◆ getOperatorKind()

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

Definition at line 2041 of file ASTBitCodes.h.

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

◆ getSelector()

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

Friends And Related Function Documentation

◆ operator==

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

Definition at line 2049 of file ASTBitCodes.h.

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