Various C structures (CGRect, UIEdgeInsets, etc.) are missing objc_boxable attribute

Originator:1101.debian
Number:rdar://26499889 Date Originated:May 26 2016, 9:34 PM
Status: Resolved:
Product:macOS/iOS SDK Product Version:
Classification: Reproducible:Always
 
The most recent version of Clang has 'objc_boxable' attribute, that can be used within C structures to box them into NSValue.
Here is more info:https://github.com/llvm-mirror/clang/commit/3849076ca69f4277bfac55479c2fc0929f5bbd9d

Notes:
Initially I hardcoded the structures into compiler, but I was pointed by John McCall that the best way is to add special attribute, so that it's possible to mark C structures easily.
However, it didn't happen.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!