6

I'm having problems with my -rather extense- Uncrustify Configuration. I'm using Xcode to auto-run Uncrustify.

For some reason, Uncrustify seems to add a Space before the closing Brace of a block declaration.

Sample Input

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
 }];

Sample Output (note the forced space before the closing Brace)

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
  }];

Desired Output

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
 }];

How can I fix this?

Goles
  • 11,599
  • 22
  • 79
  • 140

1 Answers1

2

Ok, so I did find a solution for this.

I ended up using the following parameter in my uncrustify.cfg

indent_oc_block_msg_xcode_style = true

Got this tip by asking in the Source Forge project website (after a week or so).

Goles
  • 11,599
  • 22
  • 79
  • 140
  • Can you link to where you asked this on the Source Force site? I can't seem to get it to work in my uncrustify.cfg – sethfri Jan 01 '15 at 06:12