<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58251>58251</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Incorrectly identifies empty function as bracedList
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mydeveloperday
</td>
</tr>
</table>
<pre>
Because clang-format cannot determine `{}` as an empty function is leaves out a space between the `)` and the `{` as it doesn't identify the `{` as a `TT_FunctionLBrace`
Add an issue for tracking a potential change to fix that.
```c++
void function(){};
void function() { int a; };
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1UU2PmzAQ_TXmMtoITBzCgUNotFKlPe69MvYAbo2NsEnLv--YdNO0VaWR7fnwm3lvOq-3pkUl14CgrHTDS--XSUZQ0jkfQWPEZTIOgZ1yVrWsutIDQAaQDnCa4wb96lQ03oEJYFHeMIBfI0gIs1QIHcbviA7ieAfhdUKQTj8iBJsiAQw19Bgc41UEo9FF02__lsnkvr9_ef3V-K1dqFFKsvzK8sv9vGidZjQhrAjECiJVfTNuoP-zjwlcWlAjkUaIHnrzg1rJeHgGSX13U4y3yfbozRv9oM34OXG6a1P-vwKoBIwjYagKnosfTe5uhk1xOokyr3kpMt2Uui5rmUUTLTZMtM97YuIKn53yy4Iq2u1DNEM7-Gs5pFuXZNJvJsRsXWwzxjgHVl4YfyUbTBzX7qD8RI61t4_rZV78VwInd5cy0EOcuSiysanqXvVFiVKftOiOJ0RVnzusz7zSeXHWmZUd2pCGZpx360An45-Arj9IUFRcM9PwnPMiz-u8FqUQh2N51KI6EnxfVkWH7JjjJI09pLkOfhmypdlHJORASUvMwu-kDMEMDnfNEr5c4-iXZto03tD6GRctt2wn1eyMfgLC6fM7">