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

Member predicate CoReturnStmt::hasExpr

Holds if this co_return statement has an expression.

For example, this holds for

co_return 1+2;

but not for

co_return;
predicate hasExpr()