Files
codeql/ql/examples/snippets/updateinloop.ql
2020-01-24 10:26:59 +00: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