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)

enter image description here

there other options in "newlines" section. again, none of them match case:

(newline after while missing screenshots)

enter image description here enter image description here


1. i'm using version2.1.1, believe latest


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -