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

Member predicate BlockStmt::getStmt

Gets the nth body statement of this block, indexed from 0.

For example, for the block

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

getStmt(2)’s result is the expression statement a = b.

Stmt getStmt(int n)