Ungate accepted parts of SE439

This commit is contained in:
Mateus Rodrigues
2024-07-22 09:55:16 -03:00
parent e1f537107f
commit e0d416cdab
6 changed files with 525 additions and 522 deletions

View File

@@ -1523,8 +1523,7 @@ Parser::parseAvailabilitySpecList(SmallVectorImpl<AvailabilitySpec *> &Specs,
Status.setIsParseError();
} else if (consumeIf(tok::comma)) {
// End of list with a trailing comma.
if (Context.LangOpts.hasFeature(Feature::TrailingComma) &&
Tok.is(tok::r_paren)) {
if (Source != AvailabilitySpecSource::Available && Tok.is(tok::r_paren)) {
break;
}
// There is more to parse in this list.