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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy check bugprone-copy-constructor-init gives no warning with the example in the docs
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          sean-mcmanus
      </td>
    </tr>
</table>

<pre>
    With clang-tidy 14.0.3 (on Windows 11).

Run clang-tidy with the example in the docs at https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.html

Specifically,
```cpp
class Copyable {
public:
  Copyable() = default;
  Copyable(const Copyable &) = default;
};
class X2 : public Copyable {
  X2(const X2 &other) {} // Copyable(other) is missing
};
```
with `clang-tidy.exe --config="{Checks: 'bugprone-copy-constructor-init'}" <path>/test.cpp -- -std=c++17`.

Bug: No warnings are reported. If I'm doing something wrong, maybe the docs could explain better what the requirements are.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9VE1zmzAQ_TXismMGhG3sA4fYbmZy6aE9pFchrUGtQFQScfzvu4KEOJM0Mxr0tdr3dvcttVXX6lGHFqQRfbMKWl0hX6dZWgDjO9vDo-6VvXjIc8b3KctOLLubvz_G_vbVJXoJLQI-i24wCLqftspKDyJAG8LgWXHH-D0NhwaFR58a89Sl1jV0NuFmtAjWGk_z5P1mj8_BCZqjy9frCTxuWpR_4mk9NoOzPa6kHa706X1wowzWrXSvQ9qGztxG8XNAqc9aCmPIzfHlapvNQw7DfEJY3sORXIqaYmPlYT4fxtpoGcOatrCYUPYoYcCKEyg8i9EEVhw-MZoI3jjm2_89Y-VpWc90fnEyvIOZwyfkgCwWiGjMt5ZK4iYEMipPMFfjltBioT102ntNJfiAvyRo3k61j-laKpLiM8Iqpv-sG4qGcU6Ix7lIxJnx8utCkUEE5DHE4yBCy4pvUQroQ0pVId-w8kGRa8n4gUZeEoF3Aj2MTYT6buEiXE9xkA4dgsPBuoAqhYczPBBORxqlW_C2w9DG1YV4kfCO0IlrjW8ylnY0igQ-GEHqrjEEdHBpSd3RxOHfUTvssA8T0guZRFWF2hd7kQQdDFY3PTOJFr5OBDT6CT30SxRfdloyOlO9b7WGzMc6lbajTWy3l2lFoL9RUqbvqcwjxubZbDYlT9qKZzuR77NSFDUXSqy3qGSdFYXk2z0Xcp0YUaPxFdsc2OaUaHrAebbJdzzPdgVPVV6Islb7ncx5yQvO1hl2Qpul3RNXTRwodk-XRvvw9i9ISNy66RFf_YsxtNZVHkW_6mQn-tEnE-dqIvwP0J2A_w">