File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
cpp/ql/src/semmle/code/cpp/exprs Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ class HexLiteral extends Literal {
132132 * A C/C++ aggregate literal.
133133 */
134134class AggregateLiteral extends Expr , @aggregateliteral {
135- // if this is turned into a Literal we need to change mayBeImpure
136135 override string getCanonicalQLClass ( ) { result = "AggregateLiteral" }
137136
138137 /**
@@ -145,6 +144,10 @@ class AggregateLiteral extends Expr, @aggregateliteral {
145144 result = this .( ClassAggregateLiteral ) .getFieldExpr ( f )
146145 }
147146
147+ override predicate mayBeImpure ( ) { this .getAChild ( ) .mayBeImpure ( ) }
148+
149+ override predicate mayBeGloballyImpure ( ) { this .getAChild ( ) .mayBeGloballyImpure ( ) }
150+
148151 /** Gets a textual representation of this aggregate literal. */
149152 override string toString ( ) { result = "{...}" }
150153}
You can’t perform that action at this time.
0 commit comments