We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c927a4c + 73e217a commit 73c677dCopy full SHA for 73c677d
cpp/ql/src/semmle/code/cpp/commons/VoidContext.qll
@@ -35,7 +35,8 @@ private predicate exprInVoidContext(Expr e) {
35
exists(CommaExpr c | c.getLeftOperand() = e)
36
or
37
exists(CommaExpr c | c.getRightOperand() = e and c instanceof ExprInVoidContext)
38
+ or
39
+ exists(ForStmt for | for.getUpdate() = e)
40
) and
- not e instanceof Qualifier and
41
not e.getActualType() instanceof VoidType
42
}
0 commit comments