brintos

brintos / llvm-project-archived public Read only

0
0
Text · 415 B · 222de90 Raw
18 lines · plain
1.. title:: clang-tidy - bugprone-terminating-continue2 3bugprone-terminating-continue4=============================5 6Detects ``do while`` loops with a condition always evaluating to false that7have a ``continue`` statement, as this ``continue`` terminates the loop8effectively.9 10.. code-block:: c++11 12  void f() {13  do {14    // some code15    continue; // terminating continue16    // some other code17  } while(false);18