C++: Address review comments

This commit is contained in:
Jeroen Ketema
2025-07-04 23:13:37 +02:00
parent d010b6eb01
commit 463ae4b1eb
4 changed files with 7 additions and 3 deletions

View File

@@ -4147,7 +4147,7 @@ private predicate exprImmediatelyDiscarded(Expr expr) {
exists(ExprStmt s |
s = expr.getParent() and
not exists(StmtExpr se | s = se.getStmt().(BlockStmt).getLastStmt()) and
not exists(Conversion c | c = expr.getConversion*() and not isTransparentConversion(c))
not exists(expr.getConversion())
)
or
exists(CommaExpr c | c.getLeftOperand() = expr)