Identifiers shall be distinct from macro names
Identifiers shall be distinct from macro names.
The rule requires that macro names that exist only prior to processing must be different from identifier names that also exist after preprocessing. Keeping macro names and identifiers distinct help avoid confusion.
Polyspace® considers two names as distinct if there is a difference between their
first 63 characters. In C90, the difference must occur between the first 31
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 Code Prover Server).
Identifier XX has same significant characters as macro YY.
If you expect a rule violation but do not see it, refer to the documentation of Polyspace Code Prover™ or Polyspace Code Prover Server™.
| Group: Identifiers |
| Category: Required |
| AGC Category: Required |