Redundant Conversion

 home quick fix  example  edit

redundant_conversion

Description

Find redundant CONV expressions

Extended Information

Reports CONV expressions whose operand already has the conversion's target type,
including the result of a built-in function with a fixed result type, like to_upper( ) or strlen( ).

With option assignmentTarget, also reports a CONV that is the whole right-hand side of an assignment
whose target already has the conversion's type, "count = CONV i( text )." with count TYPE i, the
assignment converts by itself. Not reported for inline declarations, enumerated types, LET, and operands
with a generic type.

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions

Examples