CodeQL library for C/C++
codeql/cpp-all 0.12.9 (changelog, source)
Search

Member predicate ReturnStmt::hasExpr

Holds if this ‘return’ statement has an expression.

For example, this holds for

return 1+2;

but not for

return;
predicate hasExpr()