Query module ContinueInFalseLoop

name
Continue statement that does not continue
description
A ‘continue’ statement only re-runs the loop if the loop-condition is true. Therefore using ‘continue’ in a loop with a constant false condition is misleading and usually a bug.
kind
problem
id
cpp/continue-in-false-loop
problem.severity
warning

Imports

cpp

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

Predicates