AutosarC++17_10-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¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
ignore_pointer_variables¶
ignore_pointer_variables : bool = False
ignore_smart_pointer_variables¶
ignore_smart_pointer_variables : bool = False
only_check_unit_locals¶
only_check_unit_locals : bool = False
Note: this option is automatically activated during single-file analysis.