[clang] [Clang] Disallow `break`/`continue` in loop conditions (PR #198436)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 20 06:58:29 PDT 2026


Sirraide wrote:

> Do we have a feel for if anyone still relies in this behavior even though gcc does not support it or maybe worse rely on building w/ old versions? It does not mean we shouldn't do it just wondering.

I mean, I honestly don’t think there’s much of a use case for break/continue outside of a loop body. The only one I’m aware of is that old Qt FOREACH macro, but even that one doesn’t use this hack anymore. I would be rather surprised if this ended up breaking any actual code

https://github.com/llvm/llvm-project/pull/198436


More information about the cfe-commits mailing list