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