[cfe-commits] r172110 - in /cfe/trunk: lib/Format/Format.cpp unittests/Format/FormatTest.cpp

Jordan Rose jordan_rose at apple.com
Thu Jan 10 13:43:58 PST 2013


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
> 

Thanks for checking,
Jordan


On Jan 10, 2013, at 13:30 , Nico Weber <nicolasweber at gmx.de> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130110/e278ee1e/attachment.html>


More information about the cfe-commits mailing list