AutosarC++17_10-A5.2.3¶
A cast shall not remove any const or volatile qualification from the type of a pointer or reference
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
cast_removes_atomic |
Cast removes _Atomic qualification |
None |
False |
cast_removes_const |
Cast removes const qualification |
None |
False |
cast_removes_volatile |
Cast removes volatile qualification |
None |
False |
implicit_cast_removes_atomic |
Implicit cast removes _Atomic qualification |
None |
False |
implicit_cast_removes_const |
Implicit cast removes const qualification |
None |
False |
implicit_cast_removes_volatile |
Implicit cast removes volatile qualification |
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
check_atomic¶
check_atomic : bool = False
check_const¶
check_const : bool = True
check_volatile¶
check_volatile : bool = True
only_top_level¶
only_top_level : bool = False