This is an archive of the discontinued LLVM Phabricator instance.

Parse: handle another case of invalid handling for attributes
ClosedPublic

Authored by compnerd on Dec 21 2022, 3:09 PM.

Details

Summary

clang would improperly disallow GNU attributes before C++ standard
attributes when a declaration had a linkage specifier. Handle this
similarly to the previous case of invalid parsing. We now better match
the parsing rules from GCC.

Diff Detail

Event Timeline

compnerd created this revision.Dec 21 2022, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2022, 3:09 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
compnerd requested review of this revision.Dec 21 2022, 3:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2022, 3:09 PM
aaron.ballman accepted this revision.Jan 4 2023, 12:38 PM

LGTM! Should this also get a release note or do you think the current one covers it well enough?

This revision is now accepted and ready to land.Jan 4 2023, 12:38 PM

I think that the current release note should be sufficient. This is handling the same scenario in a different path.