Issue |
63383
|
Summary |
[clang-format] BlockIndent defect
|
Labels |
new issue
|
Assignees |
|
Reporter |
williamhCode
|
If `AlignAfterOpenBracket` is set to `BlockIndent`, and the line is exactly 1-2 characters over `ColumnLimit`, the closing parenthesis hangs in the next line, without the inner code block going to the next line.
For example, my I have `ColumnLimit` set to 88, and this line is 90 characters long:
```cpp
...
bindGroupLayouts.push_back(handle.device.CreateBindGroupLayout(&bindGroupLayoutDesc));
...
```
This gets formatted to:
```cpp
...
bindGroupLayouts.push_back(handle.device.CreateBindGroupLayout(&bindGroupLayoutDesc)
);
...
```
Instead, should be:
```cpp
...
bindGroupLayouts.push_back(
handle.device.CreateBindGroupLayout(&bindGroupLayoutDesc)
);
...
```
Info:
clang-format version: 16.0.6
macOS 12.6
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs