Rule M6-5-4 (required, implementation, automated)

The loop-counter shall be modified by one of: , ++, = n, or + = n; where n remains constant for the duration of the loop.

See MISRA C++ 2008 [7]

Note: “n remains constant for the duration of the loop” means that “n” can be either a literal, a constant or constexpr value.