mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
10 lines
281 B
Plaintext
10 lines
281 B
Plaintext
import javascript
|
|
|
|
query predicate test_query10(Function f, string res) {
|
|
exists(GlobalVariable gv |
|
|
gv.getAnAccess().getEnclosingFunction() = f and not f.getStartBB().isLiveAtEntry(gv, _)
|
|
|
|
|
res = "This function uses " + gv.toString() + " like a local variable."
|
|
)
|
|
}
|