External identifiers shall be distinct
This checker is deactivated in a default Polyspace® as You Code analysis. See Checkers Deactivated in Polyspace as You Code Default Analysis.
External identifiers shall be distinct.
External identifiers are ones declared with global scope or
storage class extern.
If the difference between two names occurs far later in the names, they can be easily mistaken for each other. The readability of the code is reduced.
Polyspace considers two names as distinct if there is a difference between their
first 31 characters. For C90, the difference must occur between the first 6
characters. To use the C90 rules checking, use the value c90 for
the option -c-version (see Polyspace Server documentation). You can change the number of
characters compared using the option
-code-behavior-specifications. See -code-behavior-specifications (Polyspace Bug Finder Server).
External %s %s conflicts with the external
identifier XX in file YY.
If you expect a rule violation but do not see it, refer to the documentation of Polyspace Bug Finder™ or Polyspace Bug Finder Server™.
| Group: Identifiers |
| Category: Required |
| AGC Category: Required |