clang 18.0.0git
|
Source location and bit offset of a declaration. More...
#include "clang/Serialization/ASTBitCodes.h"
Public Member Functions | |
DeclOffset ()=default | |
DeclOffset (SourceLocation Loc, uint64_t BitOffset, uint64_t DeclTypesBlockStartOffset) | |
void | setLocation (SourceLocation L) |
SourceLocation | getLocation () const |
void | setBitOffset (uint64_t Offset, const uint64_t DeclTypesBlockStartOffset) |
uint64_t | getBitOffset (const uint64_t DeclTypesBlockStartOffset) const |
Public Attributes | |
SourceLocation::UIntTy | Loc = 0 |
Raw source location. | |
UnderalignedInt64 | BitOffset |
Offset relative to the start of the DECLTYPES_BLOCK block. | |
Source location and bit offset of a declaration.
Definition at line 241 of file ASTBitCodes.h.
|
default |
|
inline |
Definition at line 251 of file ASTBitCodes.h.
References BitOffset, Loc, setBitOffset(), and setLocation().
|
inline |
Definition at line 267 of file ASTBitCodes.h.
References BitOffset, and clang::serialization::UnderalignedInt64::getBitOffset().
|
inline |
Definition at line 259 of file ASTBitCodes.h.
References clang::SourceLocation::getFromRawEncoding(), and Loc.
|
inline |
Definition at line 263 of file ASTBitCodes.h.
References BitOffset, Offset, and clang::serialization::UnderalignedInt64::setBitOffset().
Referenced by DeclOffset().
|
inline |
Definition at line 257 of file ASTBitCodes.h.
References clang::SourceLocation::getRawEncoding(), and Loc.
Referenced by DeclOffset().
UnderalignedInt64 clang::serialization::DeclOffset::BitOffset |
Offset relative to the start of the DECLTYPES_BLOCK block.
Keep structure alignment 32-bit and avoid padding gap because undefined value in the padding affects AST hash.
Definition at line 248 of file ASTBitCodes.h.
Referenced by DeclOffset(), getBitOffset(), and setBitOffset().
SourceLocation::UIntTy clang::serialization::DeclOffset::Loc = 0 |
Raw source location.
Definition at line 243 of file ASTBitCodes.h.
Referenced by DeclOffset(), getLocation(), and setLocation().