================
@@ -124,6 +124,13 @@ New checks
   ``llvm::to_vector(llvm::make_filter_range(...))`` that can be replaced with
   ``llvm::map_to_vector`` and ``llvm::filter_to_vector``.
 
+- New :doc:`misc-forbid-non-virtual-base-dtor
+  <clang-tidy/checks/misc/forbid-non-virtual-base-dtor>` check.
+
+  Warns when a class or struct publicly inherits from a base whose destructor
+  is neither virtual nor protected, and the derived type adds data members.
+  This pattern causes resource leaks when deleting through a base pointer.
----------------
EugeneZelenko wrote:

```suggestion
```

One sentence is enough.

https://github.com/llvm/llvm-project/pull/183384
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to