Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncrustify ObjC newline after method

Is there a way with Uncrustify to add a new line between method declarations and the open brace, similar to nl_fcall_brace, but for ObjC methods?

- (void)addPendingBuddyRequests:(NSArray *)requests {
}

vs.

- (void)addPendingBuddyRequests:(NSArray *)requests
{
}
like image 218
David Beck Avatar asked Aug 08 '12 17:08

David Beck


1 Answers

i think you can use the following option for this:

# Add or remove newline between function signature and '{'
nl_fdef_brace                            = force   # ignore/add/remove/force
like image 126
Willem D'Haeseleer Avatar answered Oct 19 '22 02:10

Willem D'Haeseleer