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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] AllowShortFunctionsOnASingleLine not respected if BraceWrapping AfterFunction
        </td>
    </tr>

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

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

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

<pre>
    With
```yaml
Language: Cpp
BasedOnStyle: GNU
```
this code
```c
void
f () { return; }
```
is formatted as
```c
void
f ()
{
 return;
}
```
Setting
```yaml
Language: Cpp
BasedOnStyle: GNU
BraceWrapping:
  AfterFunction: false
BreakBeforeBraces: Custom
```
"fixes" the issue.

version: 17.0.6 and 19.0.0_r498302.fa4e8995cb6b
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUk9v3C4Q_TT4gmIB_svBh_Vvtb9L1By2VY7V2IxtWgwW4LT59pXtjaJEe-ihkiUDw3vzmPcgBD1axIYULSnOCaxxcr75CjN4sP2UdE69Ns86ToSdCTuRkh3fK8zmOHoEO64wIslO9L9lOQ5bCKie7DW-mr3w_5dvnwiObZx0oL1T-KnaH_sXp9WxGigRNRGSkqqlHuPqLclaSqrzXV4d6OD8DDGiohD-lv12r2qPxXujt8L9bleMUdvxH42o9dDjs4dl2Tiz000LPQ0R_WW1fdTObogBTMA3DMLPFgfncYeHvdUaopvvKiZCDPo3BiIEjRNSHcKK6a12DAd9uPXhVcrSkoJVlMuUpey7z2WdMZEOkGMtZdF3ZZeoJlMyk5BgwyteZGVZSJ5MDZeiYINUCsqM98Ugixpkp_Iuy7OuRkh0I5jIWcEZr_OM81QpyTMsed6XeV0pRXKGM2iTGvMyp86Pya63kbySIjHQoQl7goXoDdjx4fCeCLFl2jcb7KFbx0ByZnSI4Z0o6mj29H8AFmd6Msb9uk7Ox7eRhyd7umo7GnzUFql1kXoMC_ZbxvRAP_j20a1k9aaZYlw2X4i4EHEZdZzWLu3dTMRlk3P7PSze_cA-EnHZHxmIuOzv_BMAAP__kyQS_g">