13-06-2017, 07:17 AM
We are appending some prefix for the typedef name as below
typedef float UI_FLOAT_32.
It shows the warning for the above line of code as
1. misra_violation: [Advisory] MISRA C-2012 Directive 4.6 violation: typedefs that indicate size and signedness should be used in place of the basic float numerical type.
MISRA Violation
Typedefs Of Basic Types With Names That Do Not Indicate Size And Signedness
MISRA advises compliance with this rule.
The same issue is not coming if we use FLOAT32..
Is there any rule for the typedef name used for float and double.
typedef float UI_FLOAT_32.
It shows the warning for the above line of code as
1. misra_violation: [Advisory] MISRA C-2012 Directive 4.6 violation: typedefs that indicate size and signedness should be used in place of the basic float numerical type.
MISRA Violation
Typedefs Of Basic Types With Names That Do Not Indicate Size And Signedness
MISRA advises compliance with this rule.
The same issue is not coming if we use FLOAT32..
Is there any rule for the typedef name used for float and double.
<t></t>