CodeQL library for C/C++
codeql/cpp-all 0.12.9 (changelog, source)
Search

Module Iteration

Provides classes for loop iteration variables.

Import path

import semmle.code.cpp.Iteration

Imports

Variable

Provides classes for modeling variables and their declarations.

Classes

LoopControlVariable

A C/C++ variable which is used within the initialization, condition, or update expression of a ‘for’ loop.

LoopCounter

A C/C++ variable which is used within the condition of a ‘for’ loop, and mutated within the update expression of the same ‘for’ loop.