<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58697>58697</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Add an option to control whitespaces in single line function
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
maxbachmann
</td>
</tr>
</table>
<pre>
`clang-format` allows the formatting of short functions in a single line, which are formatted like this:
```cpp
int f() { return 1; }
```
It'd be nice if this were configurable, so that we could also have
```cpp
int f() {return 1;}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNktGOnSAQhp8GbyZ7oqCiF1yc05NN-hiIo7JFMIB72rfv6Em32_amCQnM_OGfjz8MYfyhWFsap_38MoW46kwlaOfCI0FeEJ7NbP0MYYK0hJhh2r3JNvgE1oOGRKJDcNYj41_gsVizgI4fd3Ek7RuSnU1MXFl5Z-WVxjyX2bZnx3pyZrxjvAcmbxAx79FDxcSN6vtf157l18y4HGFA8NYg2OkcAg-k6Sb4yc571IM7uVIgUWcSSdrdSK-k1qLf8T-JPgH9y1OgqtpWVnUnuChGJcZe9LrINjtUrLn9EXFzh-tIAB7CdgQJORy4OQZ3xJcxbdrgGe-ncD9yL_bo1JLzdsbJX2nNNi_7cDFhpcK591_byxbDGxqK6dWmtGOiQ9O1vSwW1epaomlK2SNqMzWtrBvZj42sGimmWhdOD-jSQc849_iA04LO9IDCKl5yXpWirNq64eIi-nZo63owQ9cZcmR1iau27nJwXEKci6hOpGGfE4nOppx-izolO3s8wzr89Z7ps6lVfx-0WVbtfXGOVyf-T2m-2s8">