[PATCH] Add clang-format option for ensuring newlines after @(interface|implementation|protocol) and before @end
Allen Ding
alding at gmail.com
Mon Apr 14 00:22:47 PDT 2014
Hi all,
Made the following patch for use internally for our iOS projects. Wondering
if it would be useful to other clang-format users.
Before:
@interface Foo : NSObject <NSSomeDelegate>
- (id)init;
@property(nonatomic) NSInteger whizzy;
@end
After:
@interface Foo : NSObject <NSSomeDelegate>
- (id)init;
@property (nonatomic) NSInteger whizzy;
@end
Regards,
--
Allen Ding
Lentor Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140414/8e089d5a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objcnewlinesbetweendeclarations.patch
Type: application/octet-stream
Size: 5078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140414/8e089d5a/attachment.obj>
More information about the cfe-commits
mailing list