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