On Thu, Jan 10, 2013 at 1:43 PM, Jordan Rose <[email protected]> wrote:

> Looks like spaces are correct for @synthesize:
>
>
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW6
>
> @implementation YourClass
>
> @synthesize propertyName = instanceVariableName;
>
> ...
>
> @end
>
>
>
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingIvarsAndTypes.htmlhas

@synthesize showsTitle=_showsTitle;

though :-)


> Thanks for checking,
> Jordan
>
>
> On Jan 10, 2013, at 13:30 , Nico Weber <[email protected]> wrote:
>
> Author: nico
> Date: Thu Jan 10 15:30:42 2013
> New Revision: 172110
>
> URL: http://llvm.org/viewvc/llvm-project?rev=172110&view=rev
> Log:
> Formatter: No spaces around '=' in @property lines.
>
> Before:
> @property(assign, getter = isEditable) BOOL editable;
>
> Now:
> @property(assign, getter=isEditable) BOOL editable;
>
> It'd be nice if some Apple person could let me know if spaces are preferred
> around '=' in @synthesize lines (see FIXME in the test).
>
>
> Modified:
>    cfe/trunk/lib/Format/Format.cpp
>    cfe/trunk/unittests/Format/FormatTest.cpp
>
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to