Uncrustify: single-line method names and removing spaces between a double asterisk

Two related questions here.

1) What setting should be used to make a multiline method a single line name? For example, I have this:

- (NSArray *)nodesForXPath:(NSString *)xpath
                namespaces:(NSDictionary *)namespaces
                     error:(NSError **)error {

What my current configuration turns into this:

- (NSArray*)nodesForXPath:(NSString*)xpath
namespaces:(NSDictionary*)namespaces
error:(NSError * *)error {

But I want it to look like this:

- (NSArray*)nodesForXPath:(NSString*)xpath namespaces:(NSDictionary*)namespaces error:(NSError * *)error {

2) How to remove spaces between double asterisks in method declarations?

I can post the current configuration if it is useful.

+3
source share
2 answers

I think this question should help. Looks like

align_oc_decl_colon = true

should do the trick for your ads and

align_var_def_colon = true

. , .

0

# 2 :

sp_between_ptr_star = remove

.

0

All Articles