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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Formatting regression for member function pointers using aligned assignment  and declaration
        </td>
    </tr>

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

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

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

<pre>
    I've recently upgraded my tools from LLVM-16 to LLVM-17 and notices the following regression with clang-format.

.clang-format
```sh
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
```

test.cpp
```cpp
struct A {};

using Fn   = int (A::*)();
using RFn  = int (A::*)() &;
using RRFn = int (A::*)() &&;
```

results in the following formatting:
```cpp
struct A {};

using Fn   = int   (A::*)();
using RFn  = int  (A::*)() &;
using RRFn = int (A::*)() &&;

```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k09r3DwQxj-NfBnWSPL638EH510MLySXFnqX5bGtIkuLNE7Ity_2ppvNEkopLQjZSPOT9DzDo2I0k0NsWP7A8lOiVpp9aNqnr1IkvR9em_-ZLJ8RAmp0ZF9hPU9BDTjA8grkvY0wBr_A4-O3p4MogPzbbwnKDeA8GY0RaEYYvbX-xbgJAk4BYzTewYuhGbRVbjqMPiyKUsZPjLeXOb3dedso-GXE-bLQWjO5_7yLqFcyz9jukhZ0FFnWAoUVPy88obYqKDLe3VVe77h9C2GkVJ_PdyXXlUhh1QQtsPKBlSeWPdzSa9yEdw4AWHYC4wiYrFqW7UO2TNZMVtv8k7sQXzbk1wQwWdxTG_Yb1A34qeaAcbUUwbi7Dl46QsZN27F_yxH4A0_-rSkflSVDkw11VqsEG1HURSZllYlkbvJR6DLnAutCHQtdlH0vRN2rTFVVXeU6MY3kMhOcZ7w6lkKk-TGvq1FmnAsuVM_ZkeOijE2tfV5SH6bExLhiU1S8rBOrerRxD6mUHzIh5Rbb0GzYoV-nyI7cmkjx_SAyZPeAfwDzE3TXJt4mcvQBFlx6DDCuTm_xgLM3jjBEuDiptiThAOoaNdjTPrwnKlmDbWaic9wt7pjsJkPz2qfaL0x22-vePodz8N9RE5Pdrjky2e2yfwQAAP__4DxWUA">