This is an archive of the discontinued LLVM Phabricator instance.

[libclang] Expose aligned() attribute.
ClosedPublic

Authored by emilio on Mar 13 2019, 7:38 AM.

Details

Summary

This is useful because otherwise there's no easy way to distinguish #pragma
packed(N) from attribute(packed, aligned(N)) that isn't looking at field
offsets (since pragma packed() also creates a packed attribute).

Diff Detail

Repository
rL LLVM

Event Timeline

emilio created this revision.Mar 13 2019, 7:38 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: cfe-commits. · View Herald Transcript
alex added a subscriber: alex.Mar 13 2019, 7:45 AM
Anastasia accepted this revision.Mar 13 2019, 8:26 AM

LGTM! Thanks!

This revision is now accepted and ready to land.Mar 13 2019, 8:26 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2019, 9:16 AM

Thank you for the review! :)