Skip to content

Commit 8a6a60e

Browse files
committed
C++: Also handle destructor calls on converted expressions in PrintAST.
1 parent fcd0e99 commit 8a6a60e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/lib/semmle/code/cpp/PrintAST.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ class ConversionNode extends ExprNode {
364364
childIndex = 0 and
365365
result.getAst() = conv.getExpr() and
366366
conv.getExpr() instanceof Conversion
367+
or
368+
result.getAst() = expr.getImplicitDestructorCall(childIndex - 1)
367369
}
368370
}
369371

0 commit comments

Comments
 (0)