mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
C++: Use ConditionDeclExpr in AnalysedExpr::isDef
This commit is contained in:
@@ -171,8 +171,8 @@ class AnalysedExpr extends Expr {
|
||||
this.inCondition() and
|
||||
(
|
||||
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