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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Cannot break blocks properly
        </td>
    </tr>

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

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

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

<pre>
    In my code I want to write this:

```
{
  cout << "test";
}
```

But clang-format formats to this:

```
{ cout << "test"; }
```

If I set BraceWrapping: AfterFunction = true, then it formats like the first, but this should not happen because this is not a function and this option refers to a function, I want to break only the indentation blocks with a single line of code inside without affecting everything else, if I set ColumnLimit = 0 then it also formats like the first but then it does not allow me to define variables with attributes in a single line.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMk82OozgQx5_GXEodERvyceDQSYQ20t73bKAMtW1sZBcd5e1HmGQyLU2PRkLYluvjX79y6Ripd4iVKE-ivGR65sGH6h8MI0bvTnXW-O5eXR2Md2h9h3CFm3YM7OEWiBF4oCjUu8gvIn_-d_njW4_707oBaP3MINRZqDMIKRkjCymFOj0tL7-PkP6nmaG12vVvxodRM6xLXLT8lYrv08OfM18NXCEiwynoFv8LeprI9UK9w7thDPXsWibvQKgLcJhRyDPwgA7oJdLSxwILwVBY0p6hmTnphjj42XbgPMOgpwkdNNjqOa5wgWK60mCeebTr1is_pXNAgyFxeBktGV69agLqD_DO3pMGch061sm5sb79iHAjHkBDJNdbBEsOwZu15eQidZgsFoDaGGyZXA_4ieHOQ9ramMqmJ6qzt_Po_qWROHHJfxLRNvpvsDyYrHadx0fl1vobjLgU0qFZpH3qQLqx-NTNHKiZGSOQ-1rFJusq1R3VUWdYbfdbuS32O5lnQ4XbXWmOu0aWpTw2Zt8dtw1ui0OOqsWDLjOqZC6LvMjVViqljpujKrpWmW6_U7o0phVFjqMmu7H2c9z40GcU44zVYV8ciszqBm1MkyXlrw93eXPlJQvV4vbWzH0URW4pcnwFYmKbpvKLY3mBs3YLk7Whj95NwU8Y7D2bg60G5inNgqyFrHviYW42rR-FrJfoj-VtCv5_bFnIOmmOQtZJ9o8AAAD__zJTTmQ">