Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove, or ignore whitespace missing after parentheses

I'm trying to configure Uncrustify to prettify some obj-c files. With a code like this:

- (IBAction) blah:(id)sender {

which is fine to me, I obtain this:

- (IBAction) blah:(id) sender {

which is not fine anymore.

I tried setting sp_after_sparen to ignore or remove, but the space is still getting added. Could you please point me the right config element to use?
Thanks.

like image 334
Carlo Avatar asked Nov 14 '22 12:11

Carlo


1 Answers

You should set sp_after_oc_type = remove. You can find a well-commented uncrustify config for Objective-C here: https://gist.github.com/940977

like image 130
iHunter Avatar answered Nov 16 '22 02:11

iHunter