AutosarC++18_03-A13.5.2¶
All user-defined conversion operators shall be defined explicit
Required inputs: IR
explicit.
Example
struct A {
operator int() const; // bad
explicit operator char() const; // good
};
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
user_defined_conversion_explicit |
All user-defined conversion operators shall be defined explicit. |
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
suppress_conditionally_explicit¶
suppress_conditionally_explicit : bool = True