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

    <tr>
        <th>Summary</th>
        <td>
            clang-format mis-format braces of class template specializations
        </td>
    </tr>

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

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

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

<pre>
    ```
$ clang-format -version
clang-format version 19.0.0git (https://github.com/llvm/llvm-project b11a6607cb6522c58dfbd5f54239e7daa281368e)
$ echo 'template <> struct is_void<void> : std::true_type {};' | clang-format
template <> struct is_void<void> : std::true_type{};

```
18.1.5 (and expected) output:
`template <> struct is_void<void> : std::true_type {};`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysks-O4yAMxp_GuaCJwISQHHLotNPXGBFwU1Y0REC6O_v0q_6bqsfVrhTJVixsf59_Jmc_zUQDqHdAjD9ptgYQQe0qs5ZjTMPtXzVG9zVAy-8f3wHfADbMBjNPb4eYTqawtzOl7ON8K7-U7hUm-prXfPKFAXbHUpYMcgO4B9xPvhzXsbbxBLgP4fwIb0uKP8gWNgph2pZrO7YK0arOHUanDqpB2ZN2xmAnZNsRYP9ckOwxMkBd6LQEU4iB3IL8YLmk1Rbm8-c5egdyewsfDOSG5eIua8lNSSt9lq-FGOh30DuQ74Cagd6-KL-N-8cRzwnfy9-zV9tFV4taXfwzs2P0ayFbyAH2LK5lWcul7ePd_1Pd8soN0vWyNxUNQgvVSS2Vro6DbBQ1jToQJ6VHJ9qx6YRqG4NadbaVlR-QY8OVaLnCXui649IJqezIG4EkCRpOJ-NDfbl3HdNU-ZxXGnqUilfBjBTyndEX2xEBt4CYaEqUr-jd4E3DlZxxnTI0PPhc8rN38SXQ8ILnyedHOiZjKbN4uFw4Z_ZtYV7IehP8b1N8nHO1pjD8HcGA-6uuDLi_SvsTAAD__91dEeM">