The parameters of the function templates were being marked as incorrectly be marked as unused.
Added a test for this and changed the check to use the same isReferenced() || !getDeclName() logic as Sema::DiagnoseUnusedParameters.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Cool. Looks good. Wanna extend the test to ensure that we mark unused parameters of function templates? Do you have commit access?
Comment Actions
Add a couple of cases showing that unused parameters in function templates do correctly get removed.