CodeQL library for C/C++
Search

Member predicate CoReturnStmt::getExpr

Gets the expression of this co_return statement, if any.

For example, for

co_return 1+2;

the result is 1+2, and there is no result for

co_return;
Expr getExpr()