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