CodeQL library for C/C++
Search

Member predicate RangeBasedForStmt::getRange

Gets the expression giving the range to iterate over.

For example, for

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

the result is xs.

Expr getRange()