<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75399>75399</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Attribute forces a function to break into multiple lines.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
XDeme
</td>
</tr>
</table>
<pre>
Placing an attributes one line above a function forces the function to break into multiple lines.
```cpp
[[maybe_unused]]
void foo() { return; }
```
Formats to this:
```cpp
[[maybe_unused]]
void foo() {
return;
}
```
Using `AllowShortFunctionsOnASingleLine: All` and `ColumnLimit: 100` doesn't change the formatting.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUklGLnDAQxz_N-BJuyY66ng8-uBWfDlo4Cn0rMY6aNiZLMrly376oexwtHLQghsww__nP5KdiNLMjaqC8QtllKvHiQ_Oto5WywY-vzRertHGzUE4o5mCGxBSFdySscSTU4F9IKDElp9l4JyYfNEXBC73H2IshkPopjGMv1mTZ3OwhEE8gO5AtXOTx6dvtHtkcXVf1OtD35FKkEcoOyk4c6RdvRjF5D_gIWAuoriIQp-Agvwqour9kj2vvw6o4boZ4MRHy9n-7f9T8iIt3D3eZD4wc_69x2yxcZGut__W8-MD9fWfxs2ufjZstPRlHkLeitRYuUig3bhWfvE2rezKr4S15lpu2GD1FB1ix0ItyMx3PsA_Nxs2nbGzysc5rlVFzriSWsqpRZkuDZVFPlSynggpZSF1NKr9ohfkjlY9qrDPToMT8jOccsUQpT8OE1VjIQVdKn6VGKCStytiTtS_ryYc5MzEmaqoyr-vMqoFs3ClD1Fa5-eGwBYgbd6HZyh6GNEcopDWR47sQG7Y7oX8Ulp1o34B8o079I3NZCrZZmG87AtgD9rPhJQ0n7VfAfmt9Px5uwf8gzYD9PlAE7PeZfgcAAP__ChIARg">