bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/bugprone/terminating-continue.rst
2025-02-14 19:21:04 +01:00

17 lines
415 B
ReStructuredText

.. 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);