AutosarC++17_03-A5.2.2¶
Traditional C-style casts shall not be used
Required inputs: IR
static_cast, dynamic_cast, const_cast and reinterpret_cast)
make the intended semantics of the cast clear to readers of the code.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
c_cast |
Use of C-style cast in C++ unit. |
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
allow_void_cast¶
allow_void_cast : bool = False
allow_void_cast_on_call¶
allow_void_cast_on_call : bool = False