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