<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62131>62131</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] no space between conditional and brace initialization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bciobanu
</td>
</tr>
</table>
<pre>
Minimal repro, obtained with an empty clang-format config.
clang-format 16.0.0 and 16.0.1:
```c++
using Foo = int;
int main() {
bool bar = false;
bool ret = !bar &&Foo{5} != 5;
}
```
Expected (from clang-format 15.0.7):
```c++
using Foo = int;
int main() {
bool bar = false;
bool ret = !bar && Foo{5} != 5;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0kstunDAUhp_msLGC7GOuCxadTtn1IXwb5lTGRrZpmj59BRk1SZeRKlmA_J3bz_lVzrQE5yZoL9BeK7WXe0yTNhS1Cnulo32ZvlOgVXmW3JYi4FcWdVEUnGXPVO5MBebWrbww41VYnm4xraowE8ONlhr4FfiX1-cHLrqa15ypYF8_BchHGHT89RjAy3HO2z1TWNgcIwN5ZRQKyMv74hQKWxUFwAFwZNA_KGM6Rs-0SmfiTfns_qY-YHLlhIDijMMOsJtjhP7SQn_eH7h9a9lf_5n1_Sjffm3OFGcZ4HBLcf34Y0Rb87oHHP-X4E_qZZ8RXNlJ2lGOqnKT6AbR9LJpeXWfun4wBiU2KMYWJe9Vp2WD2nB7E4J3FU3IUfJGNEK0veS1GaxBJRo-dsrawULD3arI197_XOuYlopy3t3UoZCi8ko7n0_bIgb3zE4IiIeL03TkPOl9ydBwT7nktyqFij_9_n4r0F5ZiCxvyjimXXl2LhwWtlQoBuVPn-p0UApUSHn6rQ5U7clP91K2fKwTZ8B5oXLfdW3iCjgfbR-vpy3FH84UwPkcNgPOp5g_AQAA___X1wES">