objective c - Uncrustify obj-c: Newline before and after call to super, interface declaration and implementation declaration -
how can add newline after call super uncrustify
current:
- (void)somefunction { [super somefunction]; more stuff; , more stuff; } desired:
- (void)somefunction { [super somefunction]; more stuff; , more stuff; } and how can add newline before , after interface declaration , implementation declaration
current:
@interface scloginscreenviewcontroller () @property (weak, nonatomic) iboutlet uiview *someview; @property (weak, nonatomic) iboutlet uiview *anotherview; @end @implementation scloginscreenviewcontroller - (void)somefunction { } desired:
@interface scloginscreenviewcontroller () @property (weak, nonatomic) iboutlet uiview *someview; @property (weak, nonatomic) iboutlet uiview *anotherview; @end @implementation scloginscreenviewcontroller - (void)somefunction { } - i using bbuncrustifyplugin , uncrustifyx
unfortunately uncrustify doesn't support of these features @ moment.1
the "new line after" options shown below.
(two not included in screenshot are: newline count after variable definition block , newline count after variable definition block not @ top of function body)
there other options in "newlines" section. again, none of them match case:
(newline after while missing screenshots)
1. i'm using version2.1.1, believe latest



Comments
Post a Comment