Extend ObjCMigrator to cover automatic migration from message sending to boxable literals, e.g.:
```before typedef struct __attribute__((objc_boxable)) CGRect CGRect; /// ... CGRect rect; [NSValue valueWithBytes:&rect objCType:@encode(CGRect)]; [NSValue valueWithCGPoint:functionReturningCGPoint()]; ``` ```after typedef struct __attribute__((objc_boxable)) CGRect CGRect; /// ... CGRect rect; @(rect); @(functionReturningCGPoint()); ``` I will appreciate any ideas how to improve it since the implementation is far from beautiful.
objc_migrator_objc_boxable.patch
Description: Binary data
-- AlexDenisov Software Engineer, http://lowlevelbits.org
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits