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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] AlignAfterOpenBracket: BlockIndent not applied to control structures
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    The documentation says that `AlignAfterOpenBracket`

> only applies to braced initializer lists (when Cpp11BracedListStyle is true) **and parentheses**.

However, it doesn't apply to control structures in C++ even though they use parentheses. Instead of the current result of clang-format:

```c++
for (int someIterationValueWithLongName = 1;
     someIterationValueWithLongName < 10;
 someIterationValueWithLongName++) {
    // ...
}
```

based on the documentation, I expected to get this:

```c++
for (
    int someIterationValueWithLongName = 1;
    someIterationValueWithLongName < 10;
    someIterationValueWithLongName++
) {
    // ...
}
```

Same goes for `if` and `while`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklM1u2zAMx59GvhA1ZDmxnYMP-ViwAMV26LCdZZm2tSqSIdFts6cf5KRoOhQruhmGDVAk-OdPJGUIureINVtu2HKXyIkG5-vOnJ6SxrWn-tuA0Do1HdGSJO0sBHkKQIMkYAVfG93bdUfov45oN16qeyRWcMZ3jK8v3_wTOGtOIMfRaAxADhovFbagrSYtjf6FHowOFICJ6nFAC9txzLLN7HWrA93RySDoAOQnZGIFTKyZWEvbwig9WhowYDgb0-vkn90jPqBnYguaoHUYLBMlzVpOUYlylrwzEMhPiiaPAbSFLRMbJjaAD2iBBjf1A9CAJ5gCXmdM4WADoWzBddEB1OTjIXgMk6FoVUba_qZz_iiJ5etXZAp-ftU53dnaOR8xaEsQ3BEPhH4m_12aCX9oGm6d7b_IIwLLd5Cx_BIH8Xk3YgsZfwn5u_tFVcRdXiVhYs_EHtL0mXS5-6Oe6yIbGbAFZ2c8r1opXsoB8GlERdjGy-iRgAYdPsLpRdc_EfsgsHcjrhX-J7m7KKB3GGAuteC6YwWH2PSs4I-DNsgKniZtnberfCUTrLOSFzzPimKZDDVfKc4Lobio8rYQclHxJsuXyLOlqFQpEl0LLhY8E3lWLjK-TLumW1RVpZoScVXlnC04HqU2qTEPx9T5PtEhTFiXq6wsEiMbNOF5dfg6Ot00Ux_Ygs_T_BJGmsy8ZF5Nw3IHby-QfA0b49T9wbZxmKyjy_Jo3x7ZZPKmHojGuXNmyL2mYWpS5Y5M7KOOy-9m9O4nKmJiP9cSmNjP5fwOAAD__6ifj0A">