CodeQL library for C/C++
codeql/cpp-all 4.1.1-dev (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()