blob: 222de900373361739a15c0974109880d6403f3e5 [file] [log] [blame]
.. title:: clang-tidy - bugprone-terminating-continue
bugprone-terminating-continue
=============================
Detects ``do while`` loops with a condition always evaluating to false that
have a ``continue`` statement, as this ``continue`` terminates the loop
effectively.
.. code-block:: c++
void f() {
do {
// some code
continue; // terminating continue
// some other code
} while(false);