Skip to content

Commit 8120089

Browse files
committed
FunctionErroneousReturnValueNotTested rewritten for clarity
1 parent 3771240 commit 8120089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/common/src/codingstandards/cpp/rules/functionerroneousreturnvaluenottested/FunctionErroneousReturnValueNotTested.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ query predicate problems(FunctionCall fc, string message) {
5555
"vwprintf", "vfwprintf", "vswprintf", "vwprintf_s", "vfwprintf_s", "vswprintf_s",
5656
"vsnwprintf_s"
5757
]) and
58-
forall(GuardCondition gc |
59-
not DataFlow::localFlow(DataFlow::exprNode(fc), DataFlow::exprNode(gc.getAChild*()))
58+
not exists(GuardCondition gc |
59+
DataFlow::localFlow(DataFlow::exprNode(fc), DataFlow::exprNode(gc.getAChild*()))
6060
) and
6161
message = "Return value is not tested for errors."
6262
}

0 commit comments

Comments
 (0)