- @property(attr, attr2) instead of @property ( attr,attr2 ).
- @property NSObject *foo instead of @property NSObject * foo
- Change priority of attributes (see code/comments inline).
- Support for printing weak and unsafe_unretained attributes.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 27965 Build 27964: arc lint + arc unit
Event Timeline
@property(attr, attr2) instead of @property ( attr,attr2 ).
The style I see most often is @property (attr, attr2), which is in between those two.
Hi David,
I am just wondering - while you're here would you mind adding couple more tests? It would be great to have a test for each attribute.
Also, what do you think about Ben's suggestion? I think it would be nice to be consistent with the style Objective-C documentation uses:
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html
Sure, I can add a few more tests.
Hmm, I've seen it more often the other way around; to be honest I think the docs that you've linked to are outdated. See https://developer.apple.com/documentation/uikit/uiapplication/1622975-sharedapplication?language=objc for an example of what I've seen.
I do think that it would be nice to have X *prop instead of X * prop though, let me try adding that.