This is an archive of the discontinued LLVM Phabricator instance.

[Attributes] Remove AttrSyntax and migrate uses to AttributeCommonInfo::Syntax (NFC)
ClosedPublic

Authored by lgrey on Jun 2 2022, 11:15 AM.

Details

Summary

This is setup for allowing hasAttribute to work for plugin-provided attributes

Diff Detail

Event Timeline

lgrey created this revision.Jun 2 2022, 11:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2022, 11:15 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
lgrey requested review of this revision.Jun 2 2022, 11:15 AM
lgrey added inline comments.Jun 2 2022, 11:17 AM
clang/utils/TableGen/ClangAttrEmitter.cpp
3368

Not sure if this should be an assert or if 0 is fine.

aaron.ballman accepted this revision.Jun 3 2022, 6:46 AM

LGTM aside from a request to switch to an assert. Thanks for this cleanup!

clang/utils/TableGen/ClangAttrEmitter.cpp
3368

I think this should probably be an assertion -- keyword attributes are sufficiently weird that I'd rather we not accidentally support this interface; we can intentionally support it later if we find a need.

This revision is now accepted and ready to land.Jun 3 2022, 6:46 AM
lgrey updated this revision to Diff 434036.Jun 3 2022, 8:39 AM

Add assert

lgrey marked an inline comment as done.Jun 3 2022, 8:39 AM