AutosarC++17_03-A7.1.3

CV-qualifiers shall be placed on the right hand side of the type that is a typedef or a using name

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

lhs_cv_qualifier

CV qualifier on the lhs of a type.

None

False

Options

allow_nonpointer_typedefs

allow_nonpointer_typedefs : bool = False

Whether to allow the qualifier on the rhs of a type, if it is a non-pointer typedef.
 

allowed_typedefs

allowed_typedefs

Type: set[bauhaus.analysis.config.ShortTypeName | bauhaus.analysis.config.QualifiedName]

Default: {'clock_t', 'div_t', 'fpos_t', 'int16_t', 'int32_t', 'int64_t', 'int8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t', 'int_fast8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t', 'int_least8_t', 'intmax_t', 'intptr_t', 'ldiv_t', 'lldiv_t', 'max_align_t', 'nullptr_t', 'ptrdiff_t', 'size_t', 'time_t', 'uint16_t', 'uint32_t', 'uint64_t', 'uint8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t', 'uint_fast8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t', 'uint_least8_t', 'uintmax_t', 'uintptr_t'}

Set of names for typedefs/usings that are allowed (e.g. int32_t).