CodeQL library for C/C++
codeql/cpp-all 2.1.1 (changelog, source)
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()