uncrustify - Align on colons in Objective-C headers -


i want use uncrustify align parameters on colon, , have limited success.

using information in can uncrustify align colons in objective-c method calls? have following in config file:

align_oc_decl_colon = true align_oc_msg_colon_span = 20 

my .m-files great, this:

- (id)initwithstreetname:(nsstring *)streetname                 areacode:(nsstring *)areacode                     city:(nsstring *)city                  country:(nsstring *)country         positionlatitude:(nsstring *)positionlatitude        positionlongitude:(nsstring *)positionlongitude       serverassignmentid:(nsstring *)serverassignmentid                  comment:(nsstring *)comment                timestamp:(nsdate *)timestamp                   status:(assignmentstatus)status 

but same method looks in header:

- (id)initwithstreetname:(nsstring *)streetname              areacode             :(nsstring *)areacode                  city                 :(nsstring *)city               country              :(nsstring *)country      positionlatitude     :(nsstring *)positionlatitude     positionlongitude    :(nsstring *)positionlongitude    serverassignmentid   :(nsstring *)serverassignmentid               comment              :(nsstring *)comment             timestamp            :(nsdate *)timestamp                status               :(assignmentstatus)status; 

any ideas on how can header code implementation code?

that known bug on latest release of uncrustify. @ time of answer latest 1 9 months ago. patch error committed , appear in next release.

look here: https://github.com/bengardner/uncrustify/issues/18

as temporal fix can compile current master. compiling xcode generate 1 single binary can use until next official release.

the bug on 0.59, should solved on 0.60


Comments