Rule: Public struct has a private field type¶
Canonical rule slug: public-struct-private-field-type. ← back to all rules
A public struct holds a field whose type the public headers do not declare, hiding part of a supported type's layout.
Canonical demonstration¶
- case187_public_struct_private_field_type — Public Struct Field Retyped to an Internal Type (🔴 BREAKING)
Used by scenarios¶
- case126_sycl_device_impl_ptr — SYCL
deviceImpl Pointer —shared_ptr→ Raw Pointer