21-09-2017, 09:13 AM
The definition of the word "distinct" in rule 5.1 depends on the implementation in which the code is being compiled/linked.
What is considered non-compliant with this rule will depend on the implementation under which the code is being developed, not the implementation of the analysis tool.
The first example in the document (engine_exhaust_gas_temperature_raw) assumes an implementation which supports:
"abc" v "ABC" would be compliant with rule 5.1 if the implementation treated external identifiers as being case-sensitive.
Note: "abc" and "ABC" will always be non-compliant with directive 4.5.
What is considered non-compliant with this rule will depend on the implementation under which the code is being developed, not the implementation of the analysis tool.
The first example in the document (engine_exhaust_gas_temperature_raw) assumes an implementation which supports:
- 31 significant characters
- case-sensitive
- 6 significant characters
- case-INsensitive
"abc" v "ABC" would be compliant with rule 5.1 if the implementation treated external identifiers as being case-sensitive.
Note: "abc" and "ABC" will always be non-compliant with directive 4.5.
Posted by and on behalf of the MISRA C Working Group