[clazy] [Bug 420426] New: Check and fixup for unused parameters
A T Somers
bugzilla_noreply at kde.org
Wed Apr 22 15:28:14 BST 2020
https://bugs.kde.org/show_bug.cgi?id=420426
Bug ID: 420426
Summary: Check and fixup for unused parameters
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: andre at familiesomers.nl
CC: smartins at kde.org
Target Milestone: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list