C++: Also handle destructor calls on converted expressions in PrintAST.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-07 15:49:50 +01:00
parent fcd0e9999c
commit 8a6a60e59b

View File

@@ -364,6 +364,8 @@ class ConversionNode extends ExprNode {
childIndex = 0 and
result.getAst() = conv.getExpr() and
conv.getExpr() instanceof Conversion
or
result.getAst() = expr.getImplicitDestructorCall(childIndex - 1)
}
}