[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 8 06:26:14 PDT 2025
================
@@ -276,6 +276,9 @@ def err_expected_while : Error<"expected 'while' in do/while loop">;
def err_expected_semi_after_stmt : Error<"expected ';' after %0 statement">;
def err_expected_semi_after_expr : Error<"expected ';' after expression">;
+def warn_attr_in_secondary_block : ExtWarn<
+ "ISO C does not allow an attribute list to appear here">,
+ InGroup<CAttributeExtensions>;
----------------
yronglin wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/146224
More information about the cfe-commits
mailing list