[clang] [clang-tools-extra] [Clang] [C2y] Implement N3355 ‘NamedLoops’ (PR #152870)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 21 06:50:46 PDT 2025
================
@@ -10796,6 +10796,11 @@ def err_continue_not_in_loop : Error<
"'continue' statement not in loop statement">;
def err_break_not_in_loop_or_switch : Error<
"'break' statement not in loop or switch statement">;
+def err_break_continue_label_not_found
+ : Error<"'%select{break|continue}0' label does not name an enclosing "
+ "%select{loop or 'switch'|loop}0">;
+def err_continue_switch
+ : Error<"label of 'continue' refers to a switch statement">;
----------------
AaronBallman wrote:
Similar formatting suggestions here as above.
https://github.com/llvm/llvm-project/pull/152870
More information about the cfe-commits
mailing list