This is an archive of the discontinued LLVM Phabricator instance.

[clang] Type safety tweak for AttributeCommonInfo::Form
ClosedPublic

Authored by rsandifo-arm on Apr 12 2023, 3:06 AM.

Details

Summary

This patch adds static functions for constructing most
AttributeCommonInfo::Forms. Direct construction is only retained where
all fields (currently the syntax and spelling) are specified explicitly.

This is a wash on its own. The purpose is to allow extra fields
to be added to Form without disrupting all callers. In particular,
it allows extra information to be stored about keywords without
affecting non-keyword uses.

No functional change intended.

Diff Detail

Event Timeline

rsandifo-arm created this revision.Apr 12 2023, 3:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 3:06 AM
rsandifo-arm requested review of this revision.Apr 12 2023, 3:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 3:06 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
erichkeane accepted this revision.Apr 12 2023, 6:27 AM
This revision is now accepted and ready to land.Apr 12 2023, 6:27 AM