I want to use uncrustify to align my parameters on colon, and have some limited success.
Using the information in Can Uncrustify align colons in Objective-C method calls? I have the following in my config file:
align_oc_decl_colon = true
align_oc_msg_colon_span = 20
My .m
-files look great, like 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 the very same method looks like this in the 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 I can get the header code to look like the implementation code?