6

我已经搜索了谷歌并修改了我的 .clang 格式文件几个小时。

我希望我的块看起来像这样:

[UIView animateWithDuration:0.3 animations:^{
    label.alpha = 0;
} completion:^(BOOL finished) {
    label.hidden = YES;
}];

不是这个:

[UIView animateWithDuration:0.3 animations:^{
    label.alpha = 0;
}
    completion:^(BOOL finished) {
        label.hidden = YES;
    }];

我似乎找不到正确的参数或参数组。

我也给了 Uncrustify 一个机会,但盯着新的配置文件语法并不可取,特别是如果有一个 clang 格式的解决方案。

4

1 回答 1

-3
// clang-format off

[UIView animateWithDuration:1 animations:^{

} completion:^(BOOL finished){

}];
// clang-format on
于 2016-09-02T08:56:07.267 回答