forked from OSchip/llvm-project
18 lines
408 B
ReStructuredText
18 lines
408 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);
|