This is an archive of the discontinued LLVM Phabricator instance.

[Support] Use C++11 attribute syntax for visibility attributes
ClosedPublic

Authored by tstellar on Jun 2 2023, 4:19 PM.

Details

Summary

The gnu extension __attribute syntax cannot be mixed with the
C++11 alignas specifier, so in order to use visibility attributes on
classes that also use alignas, we need to use the C++11 standard syntax.

Also fix a few warnings introduced by this change.

Diff Detail

Event Timeline

tstellar created this revision.Jun 2 2023, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 4:19 PM
tstellar requested review of this revision.Jun 2 2023, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 4:19 PM
compnerd accepted this revision.Jun 9 2023, 10:56 AM

Thanks for fixing the attribution in the various cases. It is unfortunate that we cannot use the GNU __attribute__ spelling. I suppose that someday we will be able to use the C23 attributes and get a single spelling again.

This revision is now accepted and ready to land.Jun 9 2023, 10:56 AM
This revision was landed with ongoing or failed builds.Jul 6 2023, 10:31 AM
This revision was automatically updated to reflect the committed changes.