<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58469>58469</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Format] Differing line breaks when initializing with parentheses and braces
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JohelEGP
</td>
</tr>
</table>
<pre>
No `.clang-format`.
Input and expected output:
```C++
void f() {
details::visit(boost::hana::overload([](auto) { return mp_radical{1, {i}}; },
[](auto) {}),
x);
}
```
Actual output:
```C++
void f() {
details::visit(boost::hana::overload(
[](auto) {
return mp_radical{1, {i}};
},
[](auto) {}),
x);
}
```
Using parentheses results in better formatting:
```C++
void f() {
details::visit(boost::hana::overload([](auto) { return mp_radical(1, {i}); },
[](auto) {}),
x);
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVEuP3CAM_jXkgnaUx-R14DCPbtUeql56rkxwEloGIiCz2_76QjKjdqTd7V6qbmQFsI2Nvw_MjfjBPhlKqnTTKdDDXW_sCXxck_RI0t36_6Cn2VPQguLjhJ1HQc3sg44UF4-wY5UDyfdRFu3ZSEF7kjckbympL1pKBXqQysXdxe4snfTBhxvj_KoaQcM6M2e0yoCIMco9KY9hArM3l4DUop-tpqfpqwUhO1BBmZH8EI2S1McoxZ7GIT9c07_qeyrdEqZ9PtJjtBaXMqPzLTZ_Qrrr_Azqf8D4PAhPlvwSZq9D_6WMf-PlH7PwxUk90Aksaj-iQxdKcrPyjkpNOXqPlq5PwgfHN3jb8-YG76XwN3LbE2RZVVVZU2-bNhGsEG3RQuKlV8hCvvu11ZRHepR9jzYyoaRGyi3Cd0cfRtSBBuklKPkzWh-kH2_Iih2JW-jQJbNVbPR-WmDO74MMwXvmm86cwkKp83W4m6z5FppYWErnZnRhUjbbqk1GVkPZ16LOStE3Da_SjmctAG_6uqhSqHiigKNybIUrkSxP8zxLszYryixvN20tBG6bvgLYYi042aZ4CuRvYuKNsUNi2XIGPg8uGJV03v02gnNy0IjX-IGM0Vj20Yyo3r3_nCznZcthfwHy0YKa">