[clang] [diag] Silence `-Wfixed-enum-extension` in C23 (PR #68060)
Shoaib Meenai via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 07:58:35 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)
----------------
smeenai wrote:
You're right, I hoisted the check up and added an additional test case for that combo.
https://github.com/llvm/llvm-project/pull/68060
More information about the cfe-commits
mailing list