[clang] [diag] Silence `-Wfixed-enum-extension` in C23 (PR #68060)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 07:31:24 PDT 2023
================
@@ -5019,7 +5019,7 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS,
else if (getLangOpts().MicrosoftExt)
Diag(ColonLoc, diag::ext_ms_c_enum_fixed_underlying_type)
<< BaseRange;
- else
+ else if (!getLangOpts().C23)
----------------
erichkeane wrote:
Do we want C23 mode handled higher up? At least above `MicrosoftExt`? What if the person is compiling in C23 mode with Microsoft Extensions, they'd get the above warning incorrectly.
https://github.com/llvm/llvm-project/pull/68060
More information about the cfe-commits
mailing list