================
@@ -220,6 +226,9 @@ def ext_c2y_case_range : Extension<
"case ranges are a C2y extension">, InGroup<C2y>;
def err_c2y_labeled_break_continue : Error<
"named %select{'break'|'continue'}0 is only supported in C2y">;
+def err_c2y_first_condition_clause_is_not_declaration : Error<
+ "first clause in condition must be a declaration">;
+def err_c2y_multiple_declarations : Error<"multiple declarations are not
allowed">;
----------------
cor3ntin wrote:
But this is also the case in C++ - we should not diverge parsing and
diagnostics if we can avoid it
https://github.com/llvm/llvm-project/pull/198244
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits