Merge pull request #3334 from MathiasVP/get-an-assigned-value-join-order

C++: Fix join order in getAnAssignedValue
This commit is contained in:
Jonas Jensen
2020-04-27 17:50:12 +02:00
committed by GitHub

View File

@@ -126,10 +126,7 @@ class Variable extends Declaration, @variable {
or
exists(AssignExpr ae | ae.getLValue().(Access).getTarget() = this and result = ae.getRValue())
or
exists(AggregateLiteral l |
this.getDeclaringType() = l.getType() and
result = l.getChild(this.(Field).getInitializationOrder())
)
exists(ClassAggregateLiteral l | result = l.getFieldExpr(this))
}
/**