clang 17.0.0git
|
Inline descriptor embedded in structures and arrays. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Interp/Descriptor.h"
Public Attributes | |
unsigned | Offset |
Offset inside the structure/array. | |
unsigned | IsConst: 1 |
Flag indicating if the storage is constant or not. | |
unsigned | IsInitialized: 1 |
For primitive fields, it indicates if the field was initialized. | |
unsigned | IsBase: 1 |
Flag indicating if the field is an embedded base class. | |
unsigned | IsActive: 1 |
Flag indicating if the field is the active member of a union. | |
unsigned | IsFieldMutable: 1 |
Flag indicating if the field is mutable (if in a record). | |
Descriptor * | Desc |
Inline descriptor embedded in structures and arrays.
Such descriptors precede all composite array elements and structure fields. If the base of a pointer is not zero, the base points to the end of this structure. The offset field is used to traverse the pointer chain up to the root structure which allocated the object.
Definition at line 53 of file Descriptor.h.
Descriptor* clang::interp::InlineDescriptor::Desc |
Definition at line 72 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), clang::interp::Pointer::expand(), and clang::interp::Pointer::getFieldDesc().
unsigned clang::interp::InlineDescriptor::IsActive |
Flag indicating if the field is the active member of a union.
Definition at line 68 of file Descriptor.h.
Referenced by clang::interp::Pointer::activate(), clang::interp::EvalEmitter::createLocal(), and clang::interp::Pointer::isActive().
unsigned clang::interp::InlineDescriptor::IsBase |
Flag indicating if the field is an embedded base class.
Definition at line 66 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), and clang::interp::Pointer::isBaseClass().
unsigned clang::interp::InlineDescriptor::IsConst |
Flag indicating if the storage is constant or not.
Relevant for primitive fields.
Definition at line 59 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), and clang::interp::Pointer::isConst().
unsigned clang::interp::InlineDescriptor::IsFieldMutable |
Flag indicating if the field is mutable (if in a record).
Definition at line 70 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), and clang::interp::Pointer::isMutable().
unsigned clang::interp::InlineDescriptor::IsInitialized |
For primitive fields, it indicates if the field was initialized.
Primitive fields in static storage are always initialized. Arrays are always initialized, even though their elements might not be. Base classes are initialized after the constructor is invoked.
Definition at line 64 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), clang::interp::Pointer::initialize(), clang::interp::Pointer::isInitialized(), and clang::interp::InterpFrame::setLocal().
unsigned clang::interp::InlineDescriptor::Offset |
Offset inside the structure/array.
Definition at line 55 of file Descriptor.h.
Referenced by clang::interp::EvalEmitter::createLocal(), ctorRecord(), clang::interp::Pointer::expand(), and clang::interp::Pointer::getBase().