为什么Uncrustify在我的Objective-C块关闭括号之前强制占用空间?

Gol*_*les 5 objective-c indentation uncrustify xcode5

我遇到了我的问题 - Uncrustify配置问题.我正在使用Xcode自动运行Uncrustify.

出于某种原因,Uncrustify似乎在块声明的关闭Brace之前添加了一个Space.

样本输入

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
 }];
Run Code Online (Sandbox Code Playgroud)

样品输出(注意forced关闭前的空格)

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
  }];
Run Code Online (Sandbox Code Playgroud)

期望的输出

 [_collectionView performBatchUpdates:nil completion:^(BOOL finished) {
 }];
Run Code Online (Sandbox Code Playgroud)

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

Gol*_*les 2

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

我最终在我的中使用了以下参数uncrustify.cfg

indent_oc_block_msg_xcode_style = true

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