This is an archive of the discontinued LLVM Phabricator instance.

[clang] Mark keywords that have their own parsing rules
ClosedPublic

Authored by rsandifo-arm on Apr 19 2023, 3:20 AM.

Details

Summary

This patch retroactively classifies all existing keyword attributes
as “custom” keyword attributes, in the sense that the keywords have
their own custom parsing rules. A follow-on patch will add an
alternative type of keyword.

No functional change intended.

Diff Detail

Event Timeline

rsandifo-arm created this revision.Apr 19 2023, 3:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 3:20 AM
rsandifo-arm requested review of this revision.Apr 19 2023, 3:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 3:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

See https://reviews.llvm.org/D139028 for previous discussion on this topic. https://reviews.llvm.org/D148700 contains the Attr.td support (and the main rationale) while https://reviews.llvm.org/D148702 contains the main Parse & Sema support.

rsandifo-arm edited the summary of this revision. (Show Details)Apr 19 2023, 3:28 AM

I see a lot of other attributes are being marked with this CustomKeyword syntax, I find myself thinking tests should be written in terms of them, rather than a 'new'/'incomplete' attribute

This revision is now accepted and ready to land.May 25 2023, 5:04 AM

Update base commit.