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