Uncrustify objC newline after method

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

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

against.

- (void)addPendingBuddyRequests:(NSArray *)requests
{
}
+5
source share
1 answer

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
+12
source

All Articles