Issue |
127622
|
Summary |
[clang-format] Incorrect format with `ColumnLimit: 0` and `BreakConstructorInitializers: AfterColon`
|
Labels |
clang-format
|
Assignees |
|
Reporter |
hello48265
|
`.clang-format`:
```
ColumnLimit: 0
BreakConstructorInitializers: AfterColon
```
code:
```
struct Foo {
int x;
Foo():x(0) {}
};
```
result:
```
struct Foo {
int x;
Foo() :
x(0) {}
};
```
expected:
```
struct Foo {
int x;
Foo() : x(0) {}
};
```
This is clearly a bug, since setting `ColumnLimit` to a higher value like 120 or setting `BreakConstructorInitializers` to `BeforeColon` doesn't cause this problem.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs