<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/65221>65221</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Unclear documentation of modernize-use-equals-delete
</td>
</tr>
<tr>
<th>Labels</th>
<td>
documentation,
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
carlosgalvezp
</td>
</tr>
</table>
<pre>
The docs of "modernize-use-equals-delete" don't quite explain what the purpose of the check is. What problem is it solving? Why is the new code preferred over the new code? Any references that one can read about it?
The closest I can find is a C++ Core Guideline that says that one should not mark a function as private in order to delete it - the modern way is to move the function to *public* and mark it as deleted.
However modernize-use-equals-delete does not do that - it doesn't move the deleted function from private to public, which is a bit confusing.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k81yozoQhZ9GbLqgsAi2WbBwnOLe2c9U1kJqQBOhJvqxx3n6KUEmcTbZ2EWr-5zztUB4r0eL2LL6kdVPmYhhItdK4Qz5UZgLvi1ZT-rW_pwQFEkPNADjfCaFzuo3zKPHHF-jMD5XaDAg4xwUWcYPAV6jDgj4ZzFCW7hOIkCYEJboFvKYtNKjnFC-gPYFPKeOxVFvcAbtQQfwZC7ajqzq4Hm6pWIasXgFSQphcTigc6iALui-nKWRk73B2oFWYhoVAcgiSGHBoVAgeooBdGBVx8onVp6234QrDXn0AX6s3YO2KrkLODP-yPgjnMkh_Be1QqMtbtpe3O5c_ETRKLAUYBbuBQQM0cqgyYLwsDh9EQFBWyCnUniCbYWJO19Ztj3DVWzkBDNdcD35UAoEwPhpib3RkvETCKs2Ox2SzSapCrjn-5-umPb1zT2CIvRrdkUbUp4UU3W73I8o7w6fkQZH8wdeIPiX7QzXSctpW2OvA0iyQ_TajsV9uEy1lWqqRmTY7vZNdeDHY3PIpnZfNXUvSsTdUB9xv5NNxRspKqVq7IcjZrrlJa_KpqzK4-6hPhRKHirVl6LmTS2bumIPJc5Cm8KYy1yQGzPtfcR2X3O-y4zo0fj1Y-BckYwz2iASEuOc8TPjXBphxzxodUul-ilzbZLK-zh69lAa7YP_FA86GGx_WWlQOPiimF7-b7afRWfaKYTFs-rEeMd4N-owxb6QNDPeJYv3v3xx9BtlYLxbYTzj3crzNwAA__-zcU-u">