<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63589>63589</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Bin-packing for expression operands
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
niculaionut
</td>
</tr>
</table>
<pre>
From what I can find in the `clang-format` documentation, there isn't an option (or a combination of options) to disable bin-packing for operands.
I was looking for an option that if `true`, the code gets formatted like this:
```cpp
bool long_condition = aaaaaaaaaaaaaa && aaaaaaaaaaaaaa &&
aaaaaaaaaaaaaa;
```
But, if `false`, it gets formatted like this:
```cpp
bool long_condition = aaaaaaaaaaaaaa &&
aaaaaaaaaaaaaa &&
aaaaaaaaaaaaaa;
```
Does such an option (or combination of options) that achieves this formatting exist? If so, what is it?
If it doesn't exist, can this be added?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8U8turDgQ_RqzKXXLmG4aFizSaSHlK0Z-FOCJcSHbJJm_Hxk6k8dEd3EXFyGQ6nlO1SkZox09YsfOV3a-FXJNE4XOW706acmvqVBk_un6QDO8TjLBE2jpYbDegPWQJgRWc-2kHw8DhVkmVnMwpNcZfZLJkmfiMccFBBs9E5cE0gMt2QVMNBRAgqZZWb-FAw13b2SihURgbJTKISjrD4vUz9aPMFAAWjBIb-KR8RvjD_v3CV5lBEf0X9hHt5QJ2CEjTmFFVvM7NtBkEEZMEXYSCQ04-4yQJhtZ9fC5Q07bXr0su0UROXDkx780eWN3ZtUN5JcHmKiZqH-27oW--Vh1_dbyM47rmjL8nc8gXXwnZNMfovIj6N8ndCOMEFc9_U8gv5BHXqnUk8UXjBvFd9p5_fhmY2JVD08DRMqz2TRsI9hs_qKbIc_NEN41uqeKx03uW12FII1Bw6q-MF1l2qqVBXZl3Vza5lLxspg6U52xrbXiWjSl1INS4iJ5U4uhUlKhKWwnuKh4LRpRivJUHvnpUqLmQpWNHNqqYSeOs7Tu6NzLfKQwFjbGFbu6Ojdt4aRCF7drFcLjK2xOJkQ-3tDlnINax8hO3NmY4keVZJPD7vrthPBtCRjjNtf7NRVrcN2U0rKJRfRM9KNN06qOmmYm-lzx_jssgf5GnZjoNxyRiX7D-W8AAAD__4IzXsk">