Rule: Embedded type size increased¶
Canonical rule slug: embedded-type-size-increased. ← back to all rules
A type embedded by value in a public aggregate grows, changing the enclosing type's size and every subsequent field offset.
Canonical demonstration¶
- case07_struct_layout — Struct Layout Change (🔴 BREAKING)
Variants¶
The same rule demonstrated under a different condition.
- case14_cpp_class_size — C++ Class Size Change (language)
Used by scenarios¶
- case94_empty_tag_gained_state — Empty Tag Gained State
- case121_kernel_btf_struct_field_added — Kernel BTF Struct Field Growth
- case191_header_only_graph_field_type — Public Struct Gains a Field of a Private Type (Header-Only Graph)