Bug 420426

Summary: Check and fixup for unused parameters
Product: [Developer tools] clazy Reporter: A T Somers <andre>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.