Files
codeql/go/ql/examples/snippets/updateinloop.ql
2022-05-20 10:07:19 -07:00

14 lines
260 B
Plaintext

/**
* @name Increment statements in loops
* @description Finds increment statements that are nested in a loop
* @id go/examples/updateinloop
* @tags nesting
* increment
*/
import go
from IncStmt s, LoopStmt l
where s.getParent+() = l
select s, l