mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: Use ConditionDeclExpr in AnalysedExpr::isDef
This commit is contained in:
@@ -171,7 +171,7 @@ class AnalysedExpr extends Expr {
|
|||||||
this.inCondition() and
|
this.inCondition() and
|
||||||
(
|
(
|
||||||
this.(Assignment).getLValue() = v.getAnAccess() or
|
this.(Assignment).getLValue() = v.getAnAccess() or
|
||||||
exists(Initializer i | this.getEnclosingStmt() = i.getEnclosingStmt() and v = i.getDeclaration())
|
this.(ConditionDeclExpr).getVariableAccess() = v.getAnAccess()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user