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 {
132
132
* A C/C++ aggregate literal.
133
133
*/
134
134
class AggregateLiteral extends Expr , @aggregateliteral {
135
- // if this is turned into a Literal we need to change mayBeImpure
136
135
override string getCanonicalQLClass ( ) { result = "AggregateLiteral" }
137
136
138
137
/**
@@ -145,6 +144,10 @@ class AggregateLiteral extends Expr, @aggregateliteral {
145
144
result = this .( ClassAggregateLiteral ) .getFieldExpr ( f )
146
145
}
147
146
147
+ override predicate mayBeImpure ( ) { this .getAChild ( ) .mayBeImpure ( ) }
148
+
149
+ override predicate mayBeGloballyImpure ( ) { this .getAChild ( ) .mayBeGloballyImpure ( ) }
150
+
148
151
/** Gets a textual representation of this aggregate literal. */
149
152
override string toString ( ) { result = "{...}" }
150
153
}
You can’t perform that action at this time.
0 commit comments