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

    <tr>
        <th>Summary</th>
        <td>
            Pure virtual destructors (`virtual ~class() = 0;`) should not trigger `warning: class 'Class' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions,hicpp-special-member-functions]`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          SwuduSusuwu
      </td>
    </tr>
</table>

<pre>
    ```
$ cat Class.hxx
class Class {
 public:
  virtual ~Class() = 0;
};
$ cat .clang-tidy
---
Checks: '*'
$ clang-tidy Class.hxx
Error while trying to load a compilation database:
Could not auto-detect compilation database for file "class.hxx"
No compilation database found in /data/data/com.termux/files/home/SubStack or any parent directory
fixed-compilation-database: Error while opening fixed database: No such file or directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.
2 warnings generated.
/data/data/com.termux/files/home/SubStack/Class.hxx:1:7: warning: class 'Class' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions,hicpp-special-member-functions]
 1 | class Class {
      |       ^
```
Pure virtual functions cannot have constructors, thus `clang-tidy` should not warn that a pure virtual destructor has no constructor to go along.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkVb2S4jgQfho56TJlyzaGwAEDS3DB3NbxBLLU2NqVJZd-hiG5Z7-S7QFmiw3m0qUoLHfrU_98nxrmnOw0YkOqF1IdEhZ8b2xzugQRTsGFS0haI64NWWfLNzuQbEdoCZx52Cvm3Kp_f5_NPL7ORiD1y2yEMbRKclLslnd4k9YHpuDfaSehG0K3QIoDZKRYQKQ-3NdLsBVXTHepl-I6O9I0nRf7HvlPR4odEFoTuou_d-gN9Wu636w1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