We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12f264c + b1a94d8 commit 36221feCopy full SHA for 36221fe
cpp/ql/src/semmle/code/cpp/Variable.qll
@@ -126,10 +126,7 @@ class Variable extends Declaration, @variable {
126
or
127
exists(AssignExpr ae | ae.getLValue().(Access).getTarget() = this and result = ae.getRValue())
128
129
- exists(AggregateLiteral l |
130
- this.getDeclaringType() = l.getType() and
131
- result = l.getChild(this.(Field).getInitializationOrder())
132
- )
+ exists(ClassAggregateLiteral l | result = l.getFieldExpr(this))
133
}
134
135
/**
0 commit comments