Remove or ignore spaces that are missing after parentheses

I am trying to configure Uncrustify to prefix some obj-c files. With this code:

- (IBAction) blah:(id)sender {

which is fine for me, I get the following:

- (IBAction) blah:(id) sender {

which no longer fits.

I tried setting sp_after_sparen to ignore or delete, but space is still being added. Could you tell me the correct configuration item? Thank.

+5
source share
1 answer

You must install sp_after_oc_type = remove. You can find the well-commented uncrustify configuration for Objective-C here: https://gist.github.com/940977

+1
source

All Articles