[Patch][ObjC][Proposal] NSValue literals

AlexDenisov 1101.debian at gmail.com
Sun Dec 7 09:24:35 PST 2014


No worries, that’s fine. At least I have time to improve the patch.
Here is the new version, final one, I’d say.
I renamed the patch to reflect what it really does.

In this version:

 - support for NSRange
 - support for NS/CG Rect, Size, Point
 - support for Nonretained Object (+ valueWithNonretainedObject:(id)obj )
 - support for Pointer (+ valueWithPointer:(const void *)pointer )
 - CodeGenObjC tests, both ARC and non-ARC
 - SemaObjC tests
 - cleanups and fixes based on previous comments

P.S. Previously I mentioned support for structures based on method name (valueWith<StructName>), I don’t know is it a good idea or not and still expect to get any feedback, if it’s possible of course. Otherwise, I would stick to current implementation.
-- 
AlexDenisov
Software Engineer, https://github.com/AlexDenisov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141207/9120556d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsvalue_boxed_expressions.patch
Type: application/octet-stream
Size: 49187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141207/9120556d/attachment.obj>


More information about the cfe-commits mailing list