AutosarC++18_03-A9.6.1

Bit-fields shall be either unsigned integral, or enumeration (with underlying type of unsigned integral type)

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

invalid_bitfield

Bit-fields shall be either unsigned integral, or enumeration (with underlying type of unsigned integral type).

None

False

Options

allow_bool_bitfields

allow_bool_bitfields : bool = False

Although a bool is not guaranteed to be of sizeof == 1, the C++ standard guarantees, that a bool value can be stored in a bit-field of any size and that a true/false value stored in a bit-field of any size will compare equal with that original value.

Setting this option to true will not report bit-fields of type bool.