Skip to content

Commit

Permalink
[clang][NFC] Annotate RecordLayoutBuilder.cpp with preferred_type
Browse files Browse the repository at this point in the history
This helps debuggers to display values in bit-fields in a more helpful way.
  • Loading branch information
Endilll committed Feb 11, 2024
1 parent b985d41 commit 63b414e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clang/lib/AST/RecordLayoutBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,21 +602,28 @@ class ItaniumRecordLayoutBuilder {

/// Whether the external AST source has provided a layout for this
/// record.
LLVM_PREFERRED_TYPE(bool)
unsigned UseExternalLayout : 1;

/// Whether we need to infer alignment, even when we have an
/// externally-provided layout.
LLVM_PREFERRED_TYPE(bool)
unsigned InferAlignment : 1;

/// Packed - Whether the record is packed or not.
LLVM_PREFERRED_TYPE(bool)
unsigned Packed : 1;

LLVM_PREFERRED_TYPE(bool)
unsigned IsUnion : 1;

LLVM_PREFERRED_TYPE(bool)
unsigned IsMac68kAlign : 1;

LLVM_PREFERRED_TYPE(bool)
unsigned IsNaturalAlign : 1;

LLVM_PREFERRED_TYPE(bool)
unsigned IsMsStruct : 1;

/// UnfilledBitsInLastUnit - If the last field laid out was a bitfield,
Expand Down

0 comments on commit 63b414e

Please sign in to comment.