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

    <tr>
        <th>Summary</th>
        <td>
            clang-format-18 strange allignment for CTORs/DTORs/operators
        </td>
    </tr>

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

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

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

<pre>
    The following snippet 

`
class Test {
public:
  Test(const Test &) = default;
  ~Test() = default;
  Test &operator=(const Test &) = default;

  void foo() {
    int   a = 3;
    float b = 4;
 }
};
`
formattted with clang-format-17 using the following configuration

`
Language: Cpp
AlignConsecutiveDeclarations: Consecutive
`

is formatted in the following way using clang-format-18

`
class Test {
public:
        Test(const Test &) = default;
  ~     Test() = default;
  Test &operator=(const Test &) = default;

  void foo() {
    int   a = 3;
    float b = 4;
  }
};
`

as you can see the CTOR/DTOR/operators are alligned in a strange way



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVE1v2zAM_TXyhUggS46dHHxoa-Q0YMDQP0DbtKNNkQyLatHLfvvgjzRpsGEft-VABSL1qPf4LAzB9I6oFLtHsasSjHzyY_kN7RndLql9-1Y-nwg6b61_Na6H4MwwEIOQlZAPa8zl8qexGAI8U2AQxeOyN8TamkbotRbmtFD7xrvAa63KhTqA0BW01GG0LPTjpfz7Wv_riguGH2hE9qPQ1R_jXzBevGmh8_7SqHhHBzCOAQDn8_qmL0BnPTLUcya7ZkRRrehFde10Eanz4xmZmVp4NXyCxqLrN8vuJi0ghkln_qB6411n-jgiG-9-Kv0ndH3EnoR-gKdhWDYfrOndk3eBmsjmhSpqLC4gYS68pu7glmgCrLelFoy7u9Qrvq2X_Uhh_-_eWH5_65DbQ_-RTX7jkyVigDcfoUEHgWiewNPz5y9CHatludAJgCMB2mnky7QQAo_oepom9WEmc0zaUrcHfcCEyjQ_7PZZUezT5FTKTkmUbVpkzb5pd6iV3pPOizTrpOxIJaZUUml5UIWS2SFLt6hVqkkVmFGa10qKTNIZjd1a-3Le-rFPTAiRyrzIZZZYrMmG-clR6tY6QqnpERrL6dimjn0QmbQmcLgCsWFL5Z3h3oku9M_keDLurFRYpQq3WiVxtOWJeZg-A6GOQh17w6dYbxt_Fuo4tVuXzTD6r9SwUMeZxIQz8_gRAAD___phhwo">