<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63332>63332</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: SeparateDefinitionBlocks should have an exception for short blocks
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
C4rsten
</td>
</tr>
</table>
<pre>
Config:
```
AllowShortFunctionsOnASingleLine: All
SeparateDefinitionBlocks: Always
```
Formats:
```
void f() { foo(); }
void g() { bar(); }
```
Not a bug, but it stops me from using `SeparateDefinitionBlocks: Always`, because I would like my one-line functions, especially those inside a class definition to remain close together like this:
```
void f() { foo(); }
void g() { bar(); }
```
Something like `SeparateDefinitionBlocks: AlwaysExceptShort` would be very welcome.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk82K4zgQgJ9GvhQJsvwT5-BD0lnDwrJ7yBNIctnWtiwFqZxM3n6wkpnugW5oZsBghD6pqr5SyRjN6BBbVh1ZdcrkQpMP7UsZIqHLlO_v7Yt3gxlZcWD8xPiB1fz5peXBWn87Tz5QtzhNxrv4nzucjRst_mMcsuIAB2sf8BkvMkjCEw7GmRU-Wq9f4wO6yXv8MEbnwywpfpbC1ZseBiYaJvbAdkcYvH-sWHEEtjs9T73B4ztYyfAR_GuIfz2BBLWMTLyAWggMQSR_iTAjDMHPsETjRmA1_0KNNU_XoJZLRPgbbn6xPVjzijDfwTvcWOMQhh9CVxrjBbWR1t6BJh8RjIumR5CgrYwR-p_hgDwEnKVxoO1Kkh-RJgyPCDSZPzX5ew7PfkaaVkspjy-p-uubxgul58Vq_hSlEK4Y7nBDq_2M2_ftzfq26PfFXmbY5nVTN-WuETyb2nwnhG7qqsm1RL7ba4VN3pT7SvYl56rKTCu4KHidV3ldccG3fSmVqotc8KZuciFZyVerdmvtdd76MGYmxgXbuigKkVmp0MY0R0I4vEHaZEKsYxXa9cxGLWNkJbcmUny7hQxZbLWVbtwM6aWv9X_mBuKUJEzyiiAdYDK0tn3wYd0MBCqR2RJsOxFdUrtFx0Q3GpoWtdV-ZqJbE3j-Npfg_0dNTHQp7chEl8r6HgAA___uZURx">