Inspectopedia Help

Loop condition isn't updated inside the loop

Reports the loop conditions that are not updated inside the loop. This can indicate code defects and cause infinite loops at runtime.

Example:

int i = 0, j = 0; while (i < 10) { ++j; }

Inspection Details

Available in:

AppCode 2023.3, CLion 2023.3

Plugin:

CLion, 2023.3

Last modified: 13 July 2023