5

我的 -rather extense- Uncrustify Configuration有问题。我正在使用 Xcode 自动运行 Uncrustify。

出于某种原因,Uncrustify 似乎在块声明的结束大括号之前添加了一个空格。

样本输入

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

示例输出(注意forced右大括号前的空格)

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

期望的输出

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

我怎样才能解决这个问题?

4

1 回答 1

2

好的,所以我确实找到了解决方案。

我最终在我的uncrustify.cfg

indent_oc_block_msg_xcode_style = true

通过在 Source Forge 项目网站上询问得到这个提示(大约一周后)。

于 2014-04-07T14:34:08.373 回答