<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63056>63056</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] False positive readability-named-parameter for defaulted special member function
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chrchr-github
</td>
</tr>
</table>
<pre>
~~~c++
struct S {
S(const S&);
S(S&&) = default;
};
S::S(const S&) = default;
~~~
~~~
[<source>:2:15: warning: all parameters should be named in a function [readability-named-parameter]]
S(const S&);
^
/*unused*/
~~~
https://godbolt.org/z/aq6YvWYne
Note that there is no warning for the inline defaulted constructor,
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU01vnDAQ_TXDZbQrsBfYPXAg2XDsJYcqR2PPgitjb_2RKj3w2yuTbKKmVVXJEo-ZN8jvvUGEoCdL1EF9B_W5ECnOzndy9nL2u0nHOY3F6NRLt66rBHaXT3mGsg_RJxnxEaF9qyAiPgI7SmdDzKgBdgL-qftazy0EfkZFF5FMfKdBe37Hj8B74P0f3_zr4Lqun0CWxO-DS14S8AfgPQPeVzXwHn8Ib7WdMhTG4FV4sVAkHzDMLhmFI6EVCynUFgVekpVRO4tQ33kSSoza6Piy2yi792moz_n8jxtQP9wQG4D1yaZAClifX3_XMcd4DdmKTBwmp0Zn4t75CdjwE9ggvjdPz1-fLL3Sv7hIGGcRMc7kCXVA626C8eJ8rqO2Rlu6uUgKt3vmSJ0Hdl-ojqsTP4mCuqo51k3Vct4Uc6cuh0a1h_LSyJNQSspWHk78eKoux5Kr-lDojpWMl01ZVVXJqmbfCq7k2LRtfeScVRwOJS1Cm70xz0uWUegQEnUNL-umMGIkE27r6LtM2o1pCnAojQ4xfIxFHc22uNIIO-2iVi9Qn3EQJhBeXdBRPxP-I67NjA8HwpWkFgYXWsbcfMu8SN50nzLY_ou9dAuwId_n7bG7eveNZAQ2bJoCsGGT9SsAAP__OMsLtw">