mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
13 lines
327 B
Plaintext
13 lines
327 B
Plaintext
import javascript
|
|
|
|
query predicate test_query6(Function fun, string res) {
|
|
exists(Parameter p, Parameter q, int i, int j |
|
|
p = fun.getParameter(i) and
|
|
q = fun.getParameter(j) and
|
|
i < j and
|
|
p.getAVariable() = q.getAVariable()
|
|
|
|
|
res = "This function has two parameters that bind the same variable."
|
|
)
|
|
}
|