<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58014>58014</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] AllowMultiLineControlStatement needed
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Kikadass
      </td>
    </tr>
</table>

<pre>
    I have been searching for this for a long time just to fine large number of people asking for this on StackOverflow and other websites, but I couldn't find a ticket on GitHub actually asking for it. 

The concept is pretty simple.
We need a Style option for the following to stay as it is. It would be ideal if it also allows it fro parameters setting and other situations where other operands are found instead of just || and &&, but the minimum would be for those two. 

```
if( ma[index - 1] > threshold_high
 || ma[index + 1] > threshold_high
 || ma[index - cols] > threshold_high
 || ma[index + cols] > threshold_high
 || ma[index - 1 - cols] > threshold_high
 || ma[index - 1 + cols] > threshold_high
 || ma[index + 1 - cols] > threshold_high
 || ma[index + 1 + cols] > threshold_high )
```

Ideas for naming:
`AllowBreakingBinaryOperators` where it just allows this to happen without formatting the previous statement
`AlwaysBreakBinaryOperators` where every time a Binary operator is found it goes to the new line. In this case it is active formatting. (it would interact together with `BreakBeforeBinaryOperators` too choose whether to have the operator before or after the new line)

Please make this happen :)


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVMGO4zYM_Rr7QkzgKI6THHzYme22g7bYAlOgx4K2aVsb2TIkOmn-vpScNDPAFkUDGLJlkXyPFB8r21zKV-jxRFARjeAJXd3rsYPWOuBe-_iBYKz8Yz0QfJs9A1to9Uhg0HUE4zxU5MC2MJGdDAH644cYdoQ3xvr49USuNfYMODZguRenM1VeM_lEvUA1M7xCbWfTjInaccBoBJx1fSQOUX7U_NNcAdY8ozGX90CaV5Bkn5Ps07L-3pOEGmuaGITC5Ij5Al4PQnC1mPwh1IkCwhtfhLadWAvIQpvkbY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