<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/122633>122633</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] add support for move constructor and move assignment operator in modernize-use-equals-default?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
flovent
</td>
</tr>
</table>
<pre>
According to https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c80-use-default-if-you-have-to-be-explicit-about-using-the-default-semantics, we should not define any of special member functions which has semantics same as `=default`.
modernize-use-equals-default support all special member functions except move constructor and move assignment operator for now, it's mentioned in it's doc but no specific reason was given in code or commit messages.
modernize-use-equals-default's doc website: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html
if this support can be added, please let me know and i can pull a request for it.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUVMuS4zYM_BrqgpJLpkw_Djo4M-V8B0VCErIUoSVIeyZfn5LH4508K3tSCQTY6AaaVoTGiNgp84syr5UteeLUDYGvGHPVs3_vzs5x8hRHyAxTzouo9qz0RekLCbtl2YyUp9JviJW-vCzLCyf8tZDHQBHln2OtOzZ1Eaw9DraEXNNQv3OpJ3vFOnPdY41vSyBHubY9l1wXoTjWefpRIjjbmMmJ0i9wQ5CJS_AQOYPHgSKCje_AA8iCjmyAGeceEwwlukwcBW4TuQkmK_C8C8TOCFZA7RvVvj6w1L7ZqOasmvPMHlOk3_HePX4vNshnRyBlWThlsCH8Oyi-OVwyzHxFcBwlp-IyJ7DRfwQ_hjJjzMALJrsewsAJIt9WqpSVPgisCcQRPVD8jHl20JcMkT_wB3KQ0ApHuFmBka4Y13THHoETOJ5nyjCjiB1R_gfHJ8wNe6GMqj3_ZSlcsHHchHCdN5xGpS_4lpP9PKgz-ff1Z0L3bV2OJ5jSl7_DbaY8h4-uaIA8kTxFdjZCj2C9R7_KsgS0ghBw5QPfIt_ukgLdM5cSAlhI-L2g5LuclDeV71p_ak-2wm57aPf7w9YYU01d0-CpMagPxhqzP-52um1OXreu7Y9uvztV1OlGm2a71c1xZ4zZ9Ie294h4QrRHZ4zaNThbCk8lKhIp2G213rdtFWyPQe6-0_qrMnr1YerWqrovo6hdE0iy_LgnUw53x34pM6-rEE9tVno_t2AU4T_H3l6qkkL351E_jO94Vvqy9vf41Evi39Dl-xMh5f4IPHhfO_1HAAAA__9yrYrN">