mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Move 'snippet' queries to 'snippets' folders
This commit is contained in:
12
cpp/ql/examples/snippets/unusedparam.ql
Normal file
12
cpp/ql/examples/snippets/unusedparam.ql
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in New Issue
Block a user