开发者

Uncrustify: Single Line Method Names & Remove spaces between double asterisk

Two related questions here.

1) What setting do I need to use to make multiline method name a single line? For example, I have this:

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

Which my current config 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 can I remove spaces between double asterisks in method declarat开发者_如何学Pythonions?

I can post my current config if that would be helpful.


I think this question should help. Looks like

align_oc_decl_colon = true

should do the trick for your declarations, and

align_var_def_colon = true

will help your definitions. Read the linked question, though, as it mentions several other related settings.


For #2, add the following option:

sp_between_ptr_star = remove

To remove the space between the double asterisks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜