CodeQL library for C/C++
codeql/cpp-all 0.12.11 (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()