mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Add Scope.qll
This commit is contained in:
@@ -6,7 +6,7 @@ private import CfgNodes::ExprNodes
|
||||
|
||||
/** Holds if `v` is uninitialized at index `i` in entry block `bb`. */
|
||||
predicate uninitializedWrite(EntryBasicBlock bb, int i, LocalVariable v) {
|
||||
v.getDeclaringScope().getScopeElement() = bb.getScope() and
|
||||
v.getDeclaringScope() = bb.getScope() and
|
||||
i = -1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user