Issue 159562
Summary clang-format: `AlignAfterOpenBracket: BlockIndent` leads to incomplete formatting
Labels clang-format
Assignees
Reporter bersbersbers
    ```
clang-format version 21.1.1
```

`x.h`:
```cpp
void f(g) {
 YYYYYYYYYYYYYYYYYYYYY<XXXXXXXXX>(             //
            x, y
 );
};
```

`clang-format x.h --style="{AlignAfterOpenBracket: BlockIndent}"`:
```cpp
void f(g) {
  YYYYYYYYYYYYYYYYYYYYY<XXXXXXXXX>( //
            x,                             y
 );
};
```

`clang-format x.h`:
```cpp
void f(g) {
  YYYYYYYYYYYYYYYYYYYYY<XXXXXXXXX>( //
      x, y);
};
```

Note how `x.h` is only fully formatted without `AlignAfterOpenBracket: BlockIndent` (which is as I would expect it) but not with it (where I would have expected formatting as well).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to