<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57538>57538</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] wrong formatting between requires clause and `bool`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zzyyyl
</td>
</tr>
</table>
<pre>
#### input
```cpp
template <typename A>
requires std::is_base_of_v<B, A>
bool f() {
return false;
}
```
#### output
```cpp
template <typename A>
requires std::is_base_of_v<B, A> bool
f() {
return false;
}
```
#### expect
same as input
#### others
The formatting is correct if `bool` is replaced by `int`, `void` or anything else.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9kcGSoyAQhp8GL9RYCNGEg4dkMvMEe0-hNsoWgguYGefpF-LMxmztdaeqC4Tfbr6_u7HdUiPK_gRWZpoDImdEjp9rRdZop2m9CTBOWgTAiD2HZQIjRsBHxF5WGWMHv2blwGMfOsSiclT-0ggPFysv15h1QvR5k9FYq7FE9IAox2h_utcJszNYCu0Bsc9rtD__BfZAu_Vi5_CdZnDysab9BzPwPkH7YMYnVOH_MbKHJoQBnN_KPwbA0rpRhKBMj5XHrXUuFsdK4ohws1GRJDiIzWmhw82SFGVCQox-43a1qku_WYeFWcKQakE0l6-vZFAXVUWLPeclzbqadZxxkQUVNNSoPLVamP5p5UDlGb85GwtsuBoIbwDmPoCYMfvo2HQbymx2uh5CmHwaDn2N0aswzE3e2jEetL5-bU-Tsz9TD-mr8n4GHz_KfckO2VATxkRRkgNIwvfVoeCyiPSE7aoKuJQ806KJ5hJ4hM1UTQmlhBNGdowXNJeEcbZrWcm5rISgaEdgFErn6eHcuj5z9Y2hmXsfRa188HdReK96A_BVX8xhsK7--FiWRWc32vqG-hvI0BC0">