[cfe-commits] [PATCH] Support the C11 _Alignof keyword
Richard Smith
richard at metafoo.co.uk
Wed Jun 20 16:58:51 PDT 2012
Hi,
On Tue, Jun 19, 2012 at 10:00 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> We currently don't treat C11's _Alignof as a keyword (though we get _Alignas right). This patch treats it like GNU __alignof and C++11 alignof.
>
> Note that this was made by me searching for "alignof" in the source and putting in what looked right, so I'd appreciate someone double-checking my work!
The patch looks completely reasonable to me, but I've not checked for
other places which might need updating.
A test for the '_Alignof is a C11-specific feature' diagnostic
wouldn't go amiss :)
More information about the cfe-commits
mailing list