Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/bugprone/terminating-continue.rst

raw
1 .. title:: clang-tidy - bugprone-terminating-continue
2
3 bugprone-terminating-continue
4 =============================
5
6 Detects ``do while`` loops with a condition always evaluating to false that
7 have a ``continue`` statement, as this ``continue`` terminates the loop
8 effectively.
9
10 .. code-block:: c++
11
12 void f() {
13 do {
14 // some code
15 continue; // terminating continue
16 // some other code
17 } while(false);