AUTOSAR C++14 Rule M8-4-2
The identifiers used for the parameters in a re-declaration of a function shall be identical to those in the declaration
Description
Rule Definition
The identifiers used for the parameters in a re-declaration of a function shall be identical to those in the declaration.
Polyspace Implementation
The checker detects mismatch in parameter names between:
A function declaration and the corresponding definition.
Two declarations of a function, provided they occur in the same file.
If the declarations occur in different files, the checker does not raise a violation for mismatch in parameter names. Redeclarations in different files are forbidden by
AUTOSAR C++14 Rule M3-2-3
.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Check Information
Group: Declarators |
Category: Required, Automated |
Version History
Introduced in R2019a