[clang] [clang-tools-extra] [Clang] [C2y] Implement N3355 ‘NamedLoops’ (PR #152870)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 2 07:18:54 PDT 2025


================
@@ -215,6 +215,8 @@ def warn_c23_compat_case_range : Warning<
   DefaultIgnore, InGroup<CPre2yCompat>;
 def ext_c2y_case_range : Extension<
   "case ranges are a C2y extension">, InGroup<C2y>;
+def err_c2y_labeled_break_continue : Error<
+  "labeled %select{'break'|'continue'}0 is only supported in C2y">;
----------------
Sirraide wrote:

I don’t really have a strong preference. I’ve always known this sort of feature as ‘labeled break/continue’, so I went w/ that; we can change it to ‘named’ if you prefer. For this diagnostic it should be clear from context anyway no matter which term we use.

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


More information about the cfe-commits mailing list