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

Member predicate BlockStmt::getNumStmt

Gets the number of body statements in this block.

For example, for the block

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

the result is 3.

int getNumStmt()