Skip to content

Commit 7e5ef5f

Browse files
committed
Add name of function to message.
1 parent 8120089 commit 7e5ef5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ query predicate problems(FunctionCall fc, string message) {
5858
not exists(GuardCondition gc |
5959
DataFlow::localFlow(DataFlow::exprNode(fc), DataFlow::exprNode(gc.getAChild*()))
6060
) and
61-
message = "Return value is not tested for errors."
61+
message = "Return value from " + fc.getTarget().getName() + " is not tested for errors."
6262
}

0 commit comments

Comments
 (0)