CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds parameters that are not accessed

import cpp

from Parameter p
where p.isNamed() and not exists(p.getAnAccess())
select p