CodeQL library for C/C++
codeql/cpp-all 2.1.2-dev (changelog, source)
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()