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

    <tr>
        <th>Summary</th>
        <td>
            clang-format: Single line Allman blocks
        </td>
    </tr>

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

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

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

<pre>
    Hey folks. I've been trying to represent an Allman-style configuration such that this code is possible:

```cpp
if(something)
{
 multiple();
  lines();
}

if(something_else)
{ single_line(); }
```

Currently, with single-line collapsing, we'll get this:

```cpp
if (something)
{
    multiple();
 lines();
}

if (something_else) { single_line(); }
```

However, from what I gather after crawling through every option, this is not possible. Is this something you're open to supporting? My understanding of the Allman-style preference is that curlies should never be on the same line as the `if`, `do`, signature, etc.

Config used for my example above:
```
---
Language: Cpp
BasedOnStyle: Microsoft
AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: WithoutElse
BreakBeforeBraces: Allman
InsertBraces: true
...
```

Tested on clang-format versions:
* 16.0.6
* 17.0.6
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVEuPozgQ_jXOpRRETDokBw5J90bT0ozm0CvtcWSgDJ42NnKVO8u_Xxn6kcy-RiNFoVyPj_JXX6GITOcQK3F3EncPKxW596H6jmrCVe3bqfqEE2hvnymDRyHLF4Qa0QGHybgO2EPAMSChY1AOjtYOyq2JJ4vQeKdNF4Ni4x1QbHrgXjFwbwga3yIYgtETmdqiKI4ifxD52_8uX37NOC4eo4Xckx-Qe-M6IQ-vieVpMWCIls1oUch9ihZvfrDGIf3gFeXD9etuwb-hJbx-A5BxncVvCekdCD4w3pq9hryPIaBjOwl5DxfD_SvIOoFA461VI803uYcLCllaCx0u7PwEGfA_bAD8KyE_xQf8EyHwi1x88hd8wZCuqoMf4JJk8Aid4h4DKM0YoAn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