<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58183>58183</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] SeparateDefinitionBlocks separates function-try-blocks
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
steve-numeus
</td>
</tr>
</table>
<pre>
With `SeparateDefinitionBlocks: Always` the following function will be incorrectly formatted
```cpp
void foo()
try
{
// do something
}
catch (const std::exception& e)
{
// handle exception
}
```
to
```cpp
void foo()
try
{
// do something
}
// <-- note extra space inserted here
catch (const std::exception& e)
{
// handle exception
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9UsGS2yAM_Rp8YZwBHDvOgUPSTH9gDz1jkG1aAh6Qk83fF8dJtjvTHnpZRmOE9Cy9B-qCuckfFkdKGvYGk4oK4QS99RZt8EcX9K9EqgM9uKu6pQyiOALtg3Phav1A-9nrBUmv1jnaAbVehxhBo7tlWDwrRDCEnQg7PL4NW01P0xq5BGsyNhDRErFfYxhvD_juuDo0LyK-Z6Mm0BTOgGNm8ESdVkcr1FmMaHXwCWlCk9lng3cN00KUiIbCq83fqo_KGwf044_PHV78_xSF4ZPELxBK_289CpLqW1lSH3DRh1HRNCm9PFqCmN-JjhDhyy-yAMmbpmZ1zXlbGFmZfbVXBVp0IEl91E75oVyHidQn-q85pemRSK-xLPP1lt09W8zRyRFxWuZ5ZTjkwZ-7jQ7nfHDu8tzKKYafeYTz0aY0Q8pO3fK2KkbZ6a3q1a7nVdOoflcZ2GujBG8Nb3K4LpzqwKWFd-ZaWCmYEJyxhmdxVbvZalXtDDBWCa6VEWTL4Kys2yyNNyEORZR3Dt08pJx0NmH6SKqU7OABnvXVjGOIMiFcoPTzGeZU3DnLO-Hfb7ohPQ">