clang-tidy - bugprone-terminating-continue — Extra Clang Tools 15.0.7 documentation

# Extra Clang Tools 15.0.7 documentation

## 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.

    void f() {
    do {
      // some code
      continue; // terminating continue
      // some other code
    } while(false);