struct DeclOffset
Declaration
struct DeclOffset { /* full declaration omitted */ };
Description
Source location and bit offset of a declaration.
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:241
Member Variables
- public SourceLocation::UIntTy Loc = 0
- Raw source location.
- public clang::serialization::UnderalignedInt64 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.
Method Overview
- public DeclOffset()
- public DeclOffset(clang::SourceLocation Loc, uint64_t BitOffset, uint64_t DeclTypesBlockStartOffset)
- public uint64_t getBitOffset(const uint64_t DeclTypesBlockStartOffset) const
- public clang::SourceLocation getLocation() const
- public void setBitOffset(uint64_t Offset, const uint64_t DeclTypesBlockStartOffset)
- public void setLocation(clang::SourceLocation L)
Methods
¶DeclOffset()
DeclOffset()
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:250
¶DeclOffset(clang::SourceLocation Loc,
uint64_t BitOffset,
uint64_t DeclTypesBlockStartOffset)
DeclOffset(clang::SourceLocation Loc,
uint64_t BitOffset,
uint64_t DeclTypesBlockStartOffset)
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:251
Parameters
- clang::SourceLocation Loc
- uint64_t BitOffset
- uint64_t DeclTypesBlockStartOffset
¶uint64_t getBitOffset(
const uint64_t DeclTypesBlockStartOffset)
const
uint64_t getBitOffset(
const uint64_t DeclTypesBlockStartOffset)
const
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:267
Parameters
- const uint64_t DeclTypesBlockStartOffset
¶clang::SourceLocation getLocation() const
clang::SourceLocation getLocation() const
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:259
¶void setBitOffset(
uint64_t Offset,
const uint64_t DeclTypesBlockStartOffset)
void setBitOffset(
uint64_t Offset,
const uint64_t DeclTypesBlockStartOffset)
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:263
Parameters
- uint64_t Offset
- const uint64_t DeclTypesBlockStartOffset
¶void setLocation(clang::SourceLocation L)
void setLocation(clang::SourceLocation L)
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:257