mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
14 lines
245 B
Plaintext
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
|