[PATCH] D55212: Handle alloc_size attribute on function pointers

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 7 03:47:02 PST 2019


arichardson added a comment.

I don't see an easy way of fixing the pragma clang attribute support for this. 
Would it be okay to commit this change anyway?
Since `alloc_size` is only used for very few functions I'd be very surprised if there's any existing code that relies on using `#pragma clang atrribute` with `alloc_size`.

By the way GCC now also supports the attribute on function pointers: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=267158


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55212/new/

https://reviews.llvm.org/D55212





More information about the cfe-commits mailing list