<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/159562>159562</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format: `AlignAfterOpenBracket: BlockIndent` leads to incomplete formatting
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          bersbersbers
      </td>
    </tr>
</table>

<pre>
    ```
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).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8k0lznDwQhn9Nc1ENJVosowMHxvNNlS9frslRQAOKNYhCYpZ_n9J47ODKZueQLrFIqN96H3WjnNP9SFRCtoNsH6nFD3Yua5rdyxXVtr2WkPP74FVj1NhvOjsflWcnmp22I8MkTuIEeLXe-Ty9xEOYimr9tZkm4NXJ6pZ1gNseUDIodsAr9uVnAeLh80uA-A9wy9YBeAiDV-vFC-ADu4ZFQAkiiEOxv7_8YPMN1iUe2Gbj_NUQiD0gQrGrjO7HqvM0f5po3M2qeSIPomI7Y5unx7Gl0Qd9xA_hvpv314y_i7_m_ycQ9xL9yd7_1hMb7Jm9thPTjtnRXFm3mHC_2fbUsrP2g1182PmuguWcAW7Pg26GoKkce2Rnu5iW0WWixjPtA2e9eDZaf5Nn2j_n0Eyvuwd1onsKtS9-9NgHxTMZAyjjqC1FK4VUEZVJkW0TWSS5jIZSIO-ESJqs45i3qUq3DZfEi0wIrGXeRbpEjhmXyTZBnnMZp2mhUKRJm2S84zKDlNNRaRMbczrGdu4j7dxCZZLJLMfIqJqMu_3miOtKh27N9tFchrxNvfQOUm608-67ktfeUPkmS1QfOWBDqnXMW6bHxh4nQ55WJxQtsykH7ycX-u3WH732w1LHjT0CHoKP-2MzzfYrNR7wcMNzgIc74anEbwEAAP__O6Jh5w">