[PATCH] D21453: Add support for attribute "overallocated"
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 1 16:06:59 PDT 2016
ahatanak updated this revision to Diff 62560.
ahatanak added a comment.
The new patch defines a new attribute "flexible_array", which gets attached to the last array member of a struct.
I made changes to clang to treat arrays marked "flexible_array" as C99's flexible array members where it made sense to do so. There are several places where C99's flexible arrays and "flexible_array" are treated differently. For example, the attribute doesn't change the way arguments are passed or values are returned from a function. It doesn't change objective-c's type encoding either.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 24762 bytes
Desc: not available
More information about the cfe-commits