|
clang
5.0.0
|
A key used when looking up entities by DeclarationName. More...
#include "clang/Serialization/ASTBitCodes.h"
Public Member Functions | |
| DeclarationNameKey () | |
| DeclarationNameKey (DeclarationName Name) | |
| DeclarationNameKey (NameKind Kind, uint64_t Data) | |
| NameKind | getKind () const |
| IdentifierInfo * | getIdentifier () const |
| Selector | getSelector () const |
| OverloadedOperatorKind | getOperatorKind () const |
| unsigned | getHash () const |
| Compute a fingerprint of this key for use in on-disk hash table. More... | |
Friends | |
| bool | operator== (const DeclarationNameKey &A, const DeclarationNameKey &B) |
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 1638 of file ASTBitCodes.h.
|
inline |
Definition at line 1645 of file ASTBitCodes.h.
| DeclarationNameKey::DeclarationNameKey | ( | DeclarationName | Name | ) |
Definition at line 969 of file ASTReader.cpp.
References clang::DeclarationName::CXXConstructorName, clang::DeclarationName::CXXConversionFunctionName, clang::DeclarationName::CXXDeductionGuideName, clang::DeclarationName::CXXDestructorName, clang::DeclarationName::CXXLiteralOperatorName, clang::DeclarationName::CXXOperatorName, clang::DeclarationName::CXXUsingDirective, clang::DeclarationName::getAsIdentifierInfo(), clang::Selector::getAsOpaquePtr(), clang::DeclarationName::getCXXDeductionGuideTemplate(), clang::DeclarationName::getCXXLiteralIdentifier(), clang::DeclarationName::getCXXOverloadedOperator(), clang::NamedDecl::getDeclName(), clang::DeclarationName::getObjCSelector(), clang::DeclarationName::Identifier, clang::DeclarationName::ObjCMultiArgSelector, clang::DeclarationName::ObjCOneArgSelector, and clang::DeclarationName::ObjCZeroArgSelector.
|
inline |
Definition at line 1648 of file ASTBitCodes.h.
| unsigned DeclarationNameKey::getHash | ( | ) | const |
Compute a fingerprint of this key for use in on-disk hash table.
Definition at line 999 of file ASTReader.cpp.
References clang::serialization::ComputeHash(), clang::DeclarationName::CXXConstructorName, clang::DeclarationName::CXXConversionFunctionName, clang::DeclarationName::CXXDeductionGuideName, clang::DeclarationName::CXXDestructorName, clang::DeclarationName::CXXLiteralOperatorName, clang::DeclarationName::CXXOperatorName, clang::DeclarationName::CXXUsingDirective, ID, clang::DeclarationName::Identifier, clang::DeclarationName::ObjCMultiArgSelector, clang::DeclarationName::ObjCOneArgSelector, and clang::DeclarationName::ObjCZeroArgSelector.
Referenced by clang::serialization::reader::ASTDeclContextNameLookupTrait::ComputeHash(), and llvm::DenseMapInfo< clang::serialization::DeclarationNameKey >::getHashValue().
|
inline |
Definition at line 1653 of file ASTBitCodes.h.
References clang::DeclarationName::CXXDeductionGuideName, clang::DeclarationName::CXXLiteralOperatorName, and clang::DeclarationName::Identifier.
|
inline |
Definition at line 1651 of file ASTBitCodes.h.
|
inline |
Definition at line 1665 of file ASTBitCodes.h.
References clang::DeclarationName::CXXOperatorName.
|
inline |
Definition at line 1659 of file ASTBitCodes.h.
References clang::DeclarationName::ObjCMultiArgSelector, clang::DeclarationName::ObjCOneArgSelector, and clang::DeclarationName::ObjCZeroArgSelector.
|
friend |
Definition at line 1673 of file ASTBitCodes.h.
1.8.6