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

Member predicate BlockStmt::getLastStmt

Gets the last body statement of this block.

For example, for the block

{ int a; int b = 1; a = b; }

the result is the expression statement a = b.

Stmt getLastStmt()