Bug 420426 - Check and fixup for unused parameters
Summary: Check and fixup for unused parameters
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-22 14:28 UTC by A T Somers
Modified: 2020-04-22 14:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A T Somers 2020-04-22 14:28:14 UTC
There is a check for "non-trivial" unused parameters. I would like to propose a check and a fixup for all unused parameters.

Use case: We had a project in which we have a mock object mocking a wide API, with lots of methods and lots of arguments for each of these. Most methods are unimplemented, but they sprayed the compile output with warnings.

I commented out all the offending argument names, but it would have been nice to be able to quickly apply a fixup to them instead. Fixup could be either the commenting out, or perhaps inserting a Q_UNUSED(<parameter name>) at the top of the implementation.