AutosarC++17_10-A3.9.1

Fixed width integer types from <cstdint>, indicating the size and signedness, shall be used in place of the basic numerical types

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

bad_type_alias_name

Use of badly named type alias for base type.

None

False

missing_integer_typedef

Fixed width integer types from <cstdint> shall be used.

None

False

wrong_integer_typedef

Fixed width integer types from <cstdint> shall be used.

None

False

Options

allow_floating_point

allow_floating_point : bool = True

Whether floating point types without should not be reported.
 

allow_in_user_defined_literals

allow_in_user_defined_literals : bool = False

Whether the types of user defined literal parameters should not be reported.
 

allow_inside_using_declaration

allow_inside_using_declaration : bool = False

Whether direct uses of basic numerical types inside using declarations should be reported. If true, alias type names in using statements need to follow the same naming conventions as typedef names.
 

check_typedef_names

check_typedef_names : bool = True

Whether the rule should check that typedef names match the patterns specified under Analysis/types.fixed_size_int_typedefs. When allow_inside_using_declaration is true, type aliases will also be checked.
 

ignore_inherited

ignore_inherited : bool = False

If true, missing typedefs in inherited methods are not reported.
 

treat_plain_char_as_numerical

treat_plain_char_as_numerical : bool = True

Whether the char type without any signedness should be reported.