Files
codeql/cpp/ql/examples/snippets/unusedparam.ql
2019-07-26 17:47:11 +02:00

14 lines
245 B
Plaintext

/**
* @id cpp/examples/unusedparam
* @name Unused parameter
* @description Finds parameters that are not accessed
* @tags parameter
* access
*/
import cpp
from Parameter p
where p.isNamed() and not exists(p.getAnAccess())
select p