r208015 - Build debug info for ObjC interface types at the end of the translation unit to ensure all ivars are included.

Jordan Rose jordan_rose at apple.com
Mon May 5 16:48:47 PDT 2014


On May 5, 2014, at 16:47 , David Blaikie <dblaikie at gmail.com> wrote:

> On Mon, May 5, 2014 at 4:39 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>> This comment for ObjCImplementationDecl is totally bogus now, BTW.
> 
> Which part of it? That support for instance variables in the
> implementation is a legacy thing? (it isn't a legacy thing?)
> 
> That they have to be identical? (do they not? I guess not - I just had
> 3 @interface, each with a different variable, and one @implementation
> with a 4th, distinct, variable)

Both. A long time ago it was true: you could put the same info in both places, or omit it from the @implementation, but now you can put ivars wherever, and the recommendation (if not using properties) is to put them just in the @implementation.

I'll drop the comment later.

Jordan



More information about the cfe-commits mailing list