llvm-project/clang-tools-extra/docs/clang-tidy
Marco Gartmann c58c7a6ea0 [clang-tidy] cppcoreguidelines-virtual-base-class-destructor: a new check
Finds base classes and structs whose destructor is neither public and
virtual nor protected and non-virtual.
A base class's destructor should be specified in one of these ways to
prevent undefined behaviour.

Fixes are available for user-declared and implicit destructors that are
either public and non-virtual or protected and virtual.

This check implements C.35 [1] from the CppCoreGuidelines.

Reviewed By: aaron.ballman, njames93

Differential Revision: http://reviews.llvm.org/D102325

  [1]: http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-dtor-virtual
2021-09-09 13:23:38 +02:00
..
checks [clang-tidy] cppcoreguidelines-virtual-base-class-destructor: a new check 2021-09-09 13:23:38 +02:00
Contributing.rst [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
Integrations.rst [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
index.rst [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00