mirror of
https://github.com/github/codeql.git
synced 2026-02-28 04:43:42 +01:00
11 lines
206 B
Plaintext
11 lines
206 B
Plaintext
/**
|
|
* @name Test for well-formed fors
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, ForStmt s
|
|
where m.getName() = "MainFor"
|
|
and s.getEnclosingCallable() = m
|
|
and count(s.getAnUpdate()) = 1
|
|
select s, s.getUpdate(0)
|