CodeQL library for C/C++
Search

Member predicate ReturnStmt::getExpr

Gets the expression of this ‘return’ statement.

For example, for

return 1+2;

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

return;
Expr getExpr()