09-10-2015, 11:44 AM
The amplification clarifies the scopes over which identifiers with internal linkage should be checked. This rule only applies where one of the identifiers in the comparison has internal linkage.
The following table gives the application of rules for different combinations of object identifiers:
The following table gives the application of rules for different combinations of object identifiers:
Code:
Identifier 2 linkage
Identifier 1 | external | internal | none
------------------------------------------------------------
external | 5.8 | 5.8 / 5.9 | 5.8
-------------------------------------------------------------
internal | 5.8 / 5.9 | 5.9 | 5.9
------------------------------------------------------------
none | 5.8 | 5.9 | 5.3(if hidden)
-------------------------------------------------------------
Posted by and on behalf of the MISRA C Working Group