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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Brake on << endl
        </td>
    </tr>

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

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

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

<pre>
    In addition to breaking the code on `\n` could you do the same for `std::endl` and `endl`?

For instance the following code :

```cpp
int main()
{
   std::cout
      << "Bid PX " << price << endl
 << "Ask PX " << price << endl;

}
```

... clang-format converts into the 

```cpp
int main() {
  std::cout << "Bid PX " << price << endl << "Ask PX " << price << endl;
}
```

While this code:

```cpp
int main()
{
   std::cout
      << "Bid PX " << price << "\n"
      << "Ask PX " << price << "\n";

}
```

is converted (expected) into

```cpp
int main() {
  std::cout << "Bid PX " << price << "\n"
            << "Ask PX " << price << "\n";
}
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVE1v3CAQ_TX4MorFwnq9Pviwm5Wl3nprrxhmbRIMFuC0-fcVOB-bKm20VVVV8geM5w3z3jOIEPRgEVtSHUl1KsQSR-fb5c6Fonfqsf1kQSilo3YWooPeo7jXdoA4IkinEJwFsqOkurVkR0G6xSh4dAsol3OCmBDOzqekEBXhB8IPaJVJ2cKqFH-aEt4ReiL0sD4750HbEIWVmEudnTHuW1o8L5xKXaSnAvmS87xGtI0wCW0J2xPWPGXVx3UAAC_tSLfElygAEH5L-C0Qxo5aweevafQcnL2W-DzJja_AV8wh3H-I4cc3rdennzhcfi3LEqQRdrg5Oz-JCNLZB_QxgLZxFfkaHeBCgjcKXEf7Twn_luqXUZvktQ7Z4v_AYcJY_rUZex_-AfcL-DWWZ_7ZZFRA2B6_zygjqmRfMv0f-_2-CH9Bil-IUKiWq4Y3osB2s2v2tGY12xVji9VmJ1FJVfeq3ihUDe6lRLqtJO33eC50yyjjm3RvK0arssG-p1uFklfbim-QbClOQpvSmIepdH4odAgLtrum4bQwokcT8lnI2OWey82fCt8m2E2_DIFsqdEhhtdCUUeTz9E3wOoERy_u13PydUMUizftGOMckiGsI6wbdByXvpRuIqxLVZ9eN7N3dygjYV3uNRDW5XZ_BAAA__8O84Xp">