[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 6 02:29:20 PDT 2024
================
@@ -6194,9 +6195,12 @@ def err_misplaced_ivar : Error<
def warn_ivars_in_interface : Warning<
"declaration of instance variables in the interface is deprecated">,
InGroup<DiagGroup<"objc-interface-ivars">>, DefaultIgnore;
-def ext_enum_value_not_int : Extension<
- "ISO C restricts enumerator values to range of 'int' (%0 is too "
- "%select{small|large}1)">;
+def ext_c23_enum_value_not_int : Extension<
+ "enumerator values exceeding range of 'int' are a C23 extension (%0 is too "
+ "%select{small|large}1)">, InGroup<C23>;
+def warn_c17_compat_enum_value_not_int : Warning<
+ "enumerator values exceeding range of 'int' are incompatible with C standards before C23 (%0 is too "
+ "%select{small|large}1)">, DefaultIgnore, InGroup<CPre23Compat>;
----------------
Fznamznon wrote:
Done, thanks for the suggestion.
https://github.com/llvm/llvm-project/pull/103917
More information about the cfe-commits
mailing list