On Mar 4, 2014, at 22:47 , Argyrios Kyrtzidis <[email protected]> wrote:

> -  if (!T->isObjCIdType() && !T->isObjCQualifiedIdType()) {
> +  if (!T->isObjCIdType() && !T->isObjCQualifiedIdType() &&
> +      !T->isObjCClassType() && !T->isObjCQualifiedClassType() &&
> +      !T->isObjCSelType()) {

SEL isn't an ObjCObjectPointer. (It's an opaque pointer type, but not to an 
object.)

Is it worth adding test cases like this? (Not that I've ever seen code like 
this, but it is legal...)

> typedef NSObject MyObject;
> typedef NSObject *MyObjectRef;
> 
> MyObject <NSObject> *foo;
> MyObjectRef bar;

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

Reply via email to