[PATCH] [clang-format] Add ability to align Objective-C property declarations
Matt Oakes
oakesm9 at gmail.com
Fri May 1 06:59:37 PDT 2015
In Objective-C some style guides use a style where property declarations are aligned, to help with code readability. I've added an option which enable this functionality. It is disabled by default.
The option will align code so
```
@property(nonatomic, weak) NSNumber *text;
@property(nonatomic) BOOL trueOrFalse;
```
becomes
```
@property(nonatomic, weak) NSNumber *text;
@property(nonatomic) BOOL trueOrFalse;
```
http://reviews.llvm.org/D9433
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/WhitespaceManager.cpp
lib/Format/WhitespaceManager.h
unittests/Format/FormatTest.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9433.24800.patch
Type: text/x-patch
Size: 21293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150501/17acc739/attachment.bin>
More information about the cfe-commits
mailing list