default instance variable visibility

I noticed when clang parses objective-c interfaces, the default visibility for instance variables is private. For example, in this code

@interface Bloo {
int somevar;
}

somevar is reportedly private visibility, by getAccessControl on ObjCIvarDecl. I believe that default visibility is supposed to be protected:

http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ObjC.pdf

Here’s a patch:

Index: ParseObjc.cpp

Yes, it should be protected by default. Thanks.

  • Fariborz

Yes, it should be protected by default. Thanks.

Fariborz, can you please apply the patch? Thanks,

-Chris

Yes, it should be protected by default. Thanks.

Fariborz, can you please apply the patch? Thanks,

Done.

  • Fariborz