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

Member predicate RangeBasedForStmt::getStmt

Gets the ‘body’ statement of this range-based ‘for’ statement.

For example, for

for (int x : xs) { y += x; }

the result is the BlockStmt { y += x; }.

Stmt getStmt()