The identifiers used for the parameters in a re-declaration of a function shall be identical to those in the declaration
The identifiers used for the parameters in a re-declaration of a function shall be identical to those in the declaration.
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 MISRA C++:2008 Rule
3-2-3.
If you expect a rule violation but do not see it, refer to Coding Standard Violations Not Displayed.
| Group: Declarators |
| Category: Required |