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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Option to align previous operand with binary operator
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    Clang format don't support aligning operands after the binary operators:

```c++
function_that_has_bool_parameter(
 some_boolean
    && other_boolean
    && another_boolean
);
```

Having an option to align the first operand with the name would be practical and support this common way to format. It's also easier to read complex condition or complex math formulas:

```c++
function_that_has_bool_parameter(
 some_boolean
    && other_boolean
    && another_boolean
);
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUU-1unDAQfBrzZ5UTtxxw_OBH0-jU_uojnNYfgCvjRfaSNG9fwSVtc2ofoJIF0o53PTP2UM5-jM71qn5U9VNBq0yc-jGR8Yal0Gxf-8-B4ggDp5kELEeFrUBel4WTAAU_Rh9H4MUlijYDDeISyORA-0jp9YYIp6yqT6p8UuX7tylvyyh83NZeHdZoxHO8ykRynShfNXO4LpRoduKSwvNtI2Se3Q46im8lAFDYKGyAZXLpnyjFv-AKO1U93nH7k_AXet6UUgReNoogfNO_qx18yvJuA7x4mfZypNnBC6_BgnawJDLiDQXYNr2bKJPPYHieOcILvW5zb3Yf4KsobDNQyAyOst-sZUiO7NawBPcDDEfrdz6cfhVnkmkfsgb6j40vbF_ZruqocP2xLRssOzxjMfVl2aLVTjtLR9vapm6aU6OHY0W67M6mLnyPJZ7KI9bHrjwiHio0dqjOWrthsLZu1al0M_lwCOF5PnAaC5_z6vq2O53bIpB2Ie-5QDRbAh5uV6IQt6Skfmt70OuY1akMPkv-PUi8hD1THxrrJ_h2926W5J49r_njs7nLTbGm0E8iy36PeFF4Gb1Mqz4YnhVetmPffg9L4u_OiMLLLiYrvOx6fgYAAP__PGw_4g">