Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84fe7ba commit e7d9953Copy full SHA for e7d9953
1 file changed
cpp/ql/src/semmle/code/cpp/PrintAST.qll
@@ -345,13 +345,11 @@ class CastNode extends ConversionNode {
345
* A node representing a `StmtExpr`.
346
*/
347
class StmtExprNode extends ExprNode {
348
- StmtExpr stmtExpr;
349
-
350
- StmtExprNode() { stmtExpr = expr }
+ override StmtExpr expr;
351
352
override ASTNode getChildInternal(int childIndex) {
353
childIndex = 0 and
354
- result.getAST() = stmtExpr.getStmt()
+ result.getAST() = expr.getStmt()
355
}
356
357
0 commit comments