clang 22.0.0git
|
GlobalDeclID means DeclID in the current ASTContext and LocalDeclID means DeclID specific to a certain ModuleFile. More...
#include "clang/AST/DeclID.h"
Public Types | |
using | DeclID = uint64_t |
An ID number that refers to a declaration in an AST file. |
Public Member Functions | |
DeclID | getRawValue () const |
operator DeclID () const | |
operator PredefinedDeclIDs () const | |
bool | isValid () const |
bool | isInvalid () const |
unsigned | getModuleFileIndex () const |
unsigned | getLocalDeclIndex () const |
Protected Member Functions | |
DeclIDBase () | |
DeclIDBase (DeclID ID) |
Protected Attributes | |
DeclID | ID |
Friends | |
bool | operator== (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator!= (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator< (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator<= (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator> (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator>= (const DeclIDBase &LHS, const DeclID &RHS) |
bool | operator== (const DeclIDBase &LHS, const DeclIDBase &RHS) |
bool | operator!= (const DeclIDBase &LHS, const DeclIDBase &RHS) |
bool | operator< (const DeclIDBase &LHS, const DeclIDBase &RHS) |
bool | operator> (const DeclIDBase &LHS, const DeclIDBase &RHS) |
bool | operator<= (const DeclIDBase &LHS, const DeclIDBase &RHS) |
bool | operator>= (const DeclIDBase &LHS, const DeclIDBase &RHS) |
GlobalDeclID means DeclID in the current ASTContext and LocalDeclID means DeclID specific to a certain ModuleFile.
Specially, in ASTWriter, the LocalDeclID to the ModuleFile been writting is equal to the GlobalDeclID. Outside the serializer, all the DeclID been used should be GlobalDeclID. We can translate a LocalDeclID to the GlobalDeclID by ASTReader::getGlobalDeclID().
using clang::DeclIDBase::DeclID = uint64_t |
An ID number that refers to a declaration in an AST file.
The ID numbers of declarations are consecutive (in order of discovery), with values below NUM_PREDEF_DECL_IDS being reserved. At the start of a chain of precompiled headers, declaration ID 1 is used for the translation unit declaration.
DeclID should only be used directly in serialization. All other users should use LocalDeclID or GlobalDeclID.
|
inlineprotected |
Definition at line 111 of file DeclID.h.
References ID, and clang::PREDEF_DECL_NULL_ID.
Referenced by operator!=, operator!=, operator<, operator<, operator<=, operator<=, operator==, operator==, operator>, operator>, operator>=, and operator>=.
|
inlineexplicitprotected |
unsigned DeclIDBase::getLocalDeclIndex | ( | ) | const |
Definition at line 2251 of file DeclBase.cpp.
References ID.
Referenced by clang::ASTReader::getGlobalDeclID(), and clang::ASTReader::mapGlobalIDToModuleFileGlobalID().
|
inline |
Definition at line 125 of file DeclID.h.
References ID.
Referenced by clang::ASTReader::getGlobalDeclID().
|
inline |
Definition at line 115 of file DeclID.h.
References ID.
Referenced by clang::ASTReader::getGlobalDeclID(), llvm::DenseMapInfo< clang::GlobalDeclID >::getHashValue(), llvm::DenseMapInfo< clang::LocalDeclID >::getHashValue(), clang::ASTReader::mapGlobalIDToModuleFileGlobalID(), and clang::ASTDeclReader::VisitCXXRecordDeclImpl().
|
inline |
Definition at line 123 of file DeclID.h.
References ID, and clang::PREDEF_DECL_NULL_ID.
Referenced by clang::ASTDeclReader::VisitDecl(), and clang::ASTDeclReader::VisitRedeclarable().
|
inline |
Definition at line 121 of file DeclID.h.
References ID, and clang::PREDEF_DECL_NULL_ID.
Referenced by clang::ASTDeclMerger::mergeRedeclarableImpl(), clang::ASTDeclReader::VisitCXXRecordDeclImpl(), and clang::ASTDeclReader::VisitNamespaceDecl().
|
inlineexplicit |
|
inlineexplicit |
|
friend |
Definition at line 133 of file DeclID.h.
References DeclIDBase(), and operator==.
|
friend |
Definition at line 152 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 136 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 157 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 139 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 163 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
|
friend |
Definition at line 149 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 142 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 160 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 145 of file DeclID.h.
References DeclIDBase(), and ID.
|
friend |
Definition at line 166 of file DeclID.h.
References DeclIDBase(), and ID.
|
protected |
Definition at line 171 of file DeclID.h.
Referenced by DeclIDBase(), DeclIDBase(), clang::LocalDeclID::get(), getLocalDeclIndex(), getModuleFileIndex(), getRawValue(), clang::GlobalDeclID::GlobalDeclID(), isInvalid(), isValid(), operator DeclID(), clang::GlobalDeclID::operator LocalDeclID(), operator PredefinedDeclIDs(), operator!=, clang::LocalDeclID::operator++(), operator<, operator<, operator<=, operator<=, operator==, operator==, operator>, operator>, operator>=, and operator>=.