We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ConditionDeclExpr
AnalysedExpr::isDef
1 parent 2ceb25d commit d63b094Copy full SHA for d63b094
1 file changed
cpp/ql/lib/semmle/code/cpp/controlflow/Nullness.qll
@@ -171,8 +171,8 @@ class AnalysedExpr extends Expr {
171
this.inCondition() and
172
(
173
this.(Assignment).getLValue() = v.getAnAccess() or
174
- exists(Initializer i | this.getEnclosingStmt() = i.getEnclosingStmt() and v = i.getDeclaration())
175
- )
+ this.(ConditionDeclExpr).getVariableAccess() = v.getAnAccess()
+ )
176
}
177
178
/**
0 commit comments