AUTOSAR C++14 Rule A0-1-4
There shall be no unused named parameters in non-virtual functions
Description
Rule Definition
There shall be no unused named parameters in non-virtual functions.
Rationale
Unused parameters can indicate that the code is possibly incomplete. For example, if you intended to use a parameter in a specific operation, but you did not code the operation due to a design change, your code does not use the parameter.
If the parameters are obtained by copy and the copied objects are large, the redundant copies can slow down performance.
Polyspace Implementation
The checker flags a function that has unused named parameters unless the function body is empty.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: Language Independent Issues |
Category: Required, Automated |