Miscellaneous-NoImplicitTypeConversion¶
Do not use implicit type conversions
Required inputs: IR
C performs implicit type conversions in many places, e.g. numeric promotion whenever an
operator is applied to a type smaller than int.
This makes it nearly impossible to avoid all implicit conversions, so this rule is not very useful. Consider using the MisraC2012 rules 10.* and MisraC2012 rules 11.* instead to prevent problematic implicit type conversions.
See Also
Rule Miscellaneous-NoPrecisionLossPossible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
suspicious_implicit_conversion |
Use of implicit type conversion. |
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
excluded_classes¶
excluded_classes : set[bauhaus.ir.LIR_Class_Name] = {'Unknown_Class_Type', 'Unknown_Type'}