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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] C++ `= 0` on virtual methods is susceptible to `BreakBeforeBinaryOperators`
        </td>
    </tr>

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

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

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

<pre>
    Example:
```
class Foo {
public:
 virtual void Bar(int a, int b, int c, int d, int e, int g, int s, int w) const = 0;
};
```
becomes
```
class Foo {
public:
 virtual void Bar(int a, int b, int c, int d, int e, int g, int s, int w) const
      = 0;
};
```
with clang-format 15.0.7 and `BreakBeforeBinaryOperators: All`. On clang-format 14.0.0 with the same setting the output is following:
```
class Foo {
public:
 virtual void Bar(int a, int b, int c, int d, int e, int g, int s,
 int w) const = 0;
};
```
which is what I would expect. Is this a bug with the newer version or is this intended? In the `BreakBeforeBinaryOperators` I couldn't find if this is intended behaviour. But nevertheless using the `NonAssignment` option is acceptable workaround.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVM2SgzYMfhpz0SxjzE_IgUPYNJ1cus9gQIC7xmZsOey-fcdssml7aDs9LcMMH7b1SZ8kS3qvJoPYsLJl5TmRgWbrml8dTnZUSWeHz-aXD7msGll-YvzM-IlV_P7uv72W3sPFWmCH9mtpDZ1W_bcB3JSjIDXcrBqglY6JWhkCycQrRNA9QP8AwwPgA0wP4B9gY-IIvTWegOVn4Cy_u2eH8xP_NdgOe7ug_6lC7m725z9r2hTN0GtpppfRukUSZGXK0wNIMwCreOtQvrc4WoetMtJ9vq3oJFnnWX6Ck9as4im8mb9xFClPOezkNCN4uSB4JFJm2hdsoDUQKA-j1dpuykw_qUXuvP-3UbZZ9XMUt82S4AqbDXoA_FixpxSuHmhWHiR0YXrmyOCGDm7ovLIGrIv2-zllCM2AA8svcDX72X8uTMXhCn30aZg4EIzKDKDGO9uTEDqc5U3Z4FJoA4HBGzqaUaP3EPyjVqziv1lz2i_7goYiv10pRhlV9D2uJDuNsFn3Lp0NZkiTocmHY36UCTZZdTgcs2NZiGRuOt4NecnzsZRjnZVFOdb5WOfY87ovhcwT1Qgucp7zgtdFWYg0k0V1kNnQ5UVVj7JgBcdFKp1qfVtS66ZEeR-wqbKszhItO9R-n0hCGNxg32RCxAHlmmjz0oXJs4Jr5ck_WUiR3kfZnzuZlWd4ZaJloo15-OqAqN98N92CNNthT6wPPiZDxWSQ_dcqJcHpZiZa411i4sLEZVI0hy7t7cLEJYZ2_7yszv6OPTFx2QV5Ji674D8CAAD__57Erx4">