All declarations of an object or function shall use the same names and type qualifiers
This checker is deactivated in a default Polyspace® as You Code analysis. See Checkers Deactivated in Polyspace as You Code Default Analysis (Polyspace Bug Finder Access).
All declarations of an object or function shall use the same names and type qualifiers.
Consistently using parameter names and types across declarations of the same object or function encourages stronger typing. It is easier to check that the same function interface is used across all declarations.
The rule checker detects situations where parameter names or data types are different between multiple declarations or the declaration and the definition. The checker considers declarations in all translation units and flags issues that are not likely to be detected by a compiler.
Polyspace Bug Finder™ and Polyspace Code Prover™ check this coding rule differently. The analyses can produce different results.
Definition of function function_name incompatible
with its declaration.
Global declaration of function_name function
has incompatible type with its definition.
Global declaration of variable_name variable
has incompatible type with its definition.
All declarations of an object or function shall use the same names and type qualifiers.
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Declarations and Definitions |
| Category: Required |
| AGC Category: Required |