continue inside do { ... } while (false) jumps to the condition, which ends the loop, so it acts as break

tx0/cpp:continue-in-do-while-falsedefaulterrorreliability/control-flowdepth fastbug

What it finds

In a do/while (false) block, continue goes to the test of the condition, which is false: the block is left, not restarted. Code written as if continue skipped to the next round behaves as break would.

From the rule's source, continue_in_do_while_false.rs.

Turn it on, off or suppress it

The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:

tx0.toml
[rules]
"tx0/cpp:continue-in-do-while-false" = "off"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/cpp:continue-in-do-while-false] reason="..."

tx0 explain tx0/cpp:continue-in-do-while-false shows the same in the terminal. Found a false positive? Report it.