Am 12.07.2012 um 02:58 schrieb John McCall:

> I'd be fine with you adding a new predicate (allowsPointerArithmetic()) on 
> ObjCRuntime for this, if you then change Sema to use it in all the 
> appropriate places.  (You seem to have a good feel for how to do this.)  You 
> should also add another predicate (isSubscriptPointerArithmetic()), with the 
> invariant that it's only true if allowsPointerArithmetic() is, which Sema 
> would use to decide how to interpret subscripting on ObjC pointers.

I implemented that now - please see the attached patch. I also added maintainer 
information for the ObjFW runtime.

Attachment: subscripts.patch
Description: Binary data

--
Jonathan
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to