<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69605>69605</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: Do not align deleted operators with operator=
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
asastry-jumptrading
</td>
</tr>
</table>
<pre>
Consider the following class:
```
class A {
A();
~A();
A(const A&) = delete;
A(A&&);
A& operator=(const A&) = delete;
A& operator=(A&&);
};
```
after applying clang-format with `AlignConsecutiveAssignments = true`
```
class A {
A();
~A();
A(const A &) = delete;
A(A &&);
A &operator=(const A &) = delete;
A &operator =(A &&);
};
```
The `=` in the move assignment operator should not be aligned with the `= delete;` in the copy assignment operator above.
Tested with clang-format version 10.0.0 (https://github.com/llvm/llvm-project.git d32170dbd5b0d54436537b6b75beaf44324e0c28)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlFtuwyoQhleDX0a1uPgSP_ghPVFWcDYAZmxTEWMBTpWXs_YjkzR12qhVowjjEfMz8_0YGYIZJsSWlK-kPGRyiaPzrQwyRH95eVtOc_RSm2nIlNOX9h83BaPRQxwRemetezfTAJ2VIRCxJ_RA6MdY0ds_vaYlsAdSv14DAAB7wneEN0RsYv99C66Bzk0hrrOK8AaIOIBGixEfUteF1yXVV9U1DG5GL6PzRBz-IPk178kOpD58zh_7vo6yj-hBzrO93HhNw0vv_ElGeDdxBFLRvTXDtALGbonmjPvkzQmnGFJ10S_4RfZ3xt8Jf-e7BQw_4Uh84RngFH2K92fBbRpsfzfUTzb7lfW_I644V4WKgpnSWT25M4K8E71bCmF0i9UwuQgKQa4eoL56Eu9Cm8o_JTs3X55KSuXOmD-UhCF-qD54f0YfjJuA0ZzmFAjfjTHO6VPiR8KPg4njovLOnQg_Wnv-eLzM3r1hF_PBRNCCs5pqpUtFdVkUoipFrSpVlwplXxSCF0i7ZHqmW6Eb0cgMW1Y1dc13RcmzsdUdq4TUWvGaYU8lazRjfcmUbFhTiDozLadcMMoaVrKC8bzruJJ1r3iDu7oqGSkonqSx-Vpf7vyQmRAWbKumomVmpUIb0jXD-RYB4Xy9eHyb2lLLEEhBrQkxfApFEy22D1liDweXXEuW3QzSdxPCFfbmSGaLt-3f6BJ-TD0Ewo-pjf8DAAD__zH1e4w">