Query module AV Rule 201

name
For loop variable changed in body
description
Numeric variables being used within a for loop for iteration counting should not be modified in the body of the loop. Reserve for loops for straightforward iterations, and use a while loop instead for more complex cases.
kind
problem
problem.severity
recommendation
precision
high
id
cpp/loop-variable-changed
tags
reliability readability external/jsf

Imports

NestedLoopSameVar

Provides the implementation of the query ‘Nested loops with same variable’.

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates