CodeQL library for C/C++
Search

Member predicate RangeBasedForStmt::getVariable

Gets the variable introduced by the for-range-declaration.

For example, for

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

the result is int x.

LocalVariable getVariable()