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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] 'MultiLine' for 'AfterControlStatement' not working correctly
        </td>
    </tr>

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

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

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

<pre>
    clang-format version: 19.1.0

'MultiLine' for 'AfterControlStatement' not working correctly

AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
**AfterControlStatement: MultiLine**
```cpp
    // good
    while ( true )
    {
        return 1;
    }

    // good
    while ( true ) {
        return 1;
    }

 // wrong, tried in a single line: while ( true ) { return 1 }
    while ( true ) {
        return 1;
    }

    // wrong, tried in a single line: if ( true ) { return 1; }
    if ( true ) {
        return 1;
 }
```

AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: true
**AfterControlStatement: Always**
```cpp
    // good
    while ( true )
    {
        return 1;
 }

    // good
    while ( true )
    {
        return 1;
    }

 // good
    while ( true ) { return 1; }

    // good
    if ( true ) { return 1; }
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzUVFGLozwU_TXxJVSSG631wYd0-hUG5mMf-guiRs1OmpQkttP99YvW6bRsCy27LKwEFHNycs69hyu8V62RskDpEqWrSPShs674IY36-KCMZVFp62NRaWHaWWPdVgS8l84raxDjmOYxjQkifFiQ_d_roN6UkQgy3FiHEWS8CdK9WBOc1ZsggtxKE4Z9YwM-WPeuTIsr65ysgj6eqLjW9rDprAtLbat3_83wjTKtliM345jrgzj6K-Rrc2a_hdevjeem_k97eXXszdrdr_jgejlaGtZtB4zjC7sjlHA0J6dV7XaIcIwxRrBGsMattfX059ApLTGCxXgNRpB_QrPl9DU8TobeGUwRW573V6f6PMr7BONEd3DWtAhecHBK1lgZLLAfS4P1VJvb15zJJ87fFvRl8QFNqrkvCLHlhaYbyPuCJjWfTf2nwjmp-AvJfDqWT8f90azf6PldWY9F5rL3UV2wOme5iGRBM5ZlhOQ0iboC8oZmJKW1ABBN2QAkad7MUyDZoiILGakCCKSEQkLmCU2TeJ4llMq8nOd5ThlboITIrVA61nq_ja1rI-V9LwsKCbA00qKU2o8zGuByFiOAYWq7Yjg3K_vWo4Ro5YP_Ygoq6HG-Xx1MV_iPDOyod7roQth5xPipyq0KXV_Gld0iWA8yptds5-x3WQUE69GdR7CeDO4L-BkAAP__zPvqLQ">