[clang] [clang-format] Don't merge a short block for SBS_Never (PR #88238)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 00:58:44 PDT 2024


kadircet wrote:

This seems to be recognizing some initliazer list statements as blocks as well, e.g:

```objc
$ cat a.m
[bar bat:{{0, 1, 2, 3}} qq: qq];
```

this seems to be formatted as:
```objc
$ ~/repos/llvm/build/bin/clang-format -style='{AllowShortBlocksOnASingleLine: Never}' a.m
[bar bat:{
  {
    0, 1, 2, 3
  }
}
      qq:qq];
```

https://github.com/llvm/llvm-project/pull/88238


More information about the cfe-commits mailing list