AutosarC++18_03-A7.1.1

Constexpr or const specifiers shall be used for immutable data declaration

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

variable_missing_const

An immutable variable shall be const/constexpr qualified.

None

False

Options

ignore_pointer_variables

ignore_pointer_variables : bool = False

Whether variables of pointer type should be ignored.
 

ignore_smart_pointer_variables

ignore_smart_pointer_variables : bool = False

Whether smart pointer variables should be ignored.
 

only_check_unit_locals

only_check_unit_locals : bool = False

Whether only local variables and global static variables should be checked.

Note: this option is automatically activated during single-file analysis.