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

Member predicate CoReturnStmt::getOperand

Gets the operand of this co_return statement.

For example, for

co_return 1+2;

the operand is a function call return_value(1+2), and for

co_return;

the operand is a function call return_void().

FunctionCall getOperand()