Differential D103511 Diff 349211 clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-special-member-functions.rst
Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-special-member-functions.rst
Show All 19 Lines | |||||
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c21-if-you-define-or-delete-any-default-operation-define-or-delete-them-all. | https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#c21-if-you-define-or-delete-any-default-operation-define-or-delete-them-all. | ||||
Options | Options | ||||
------- | ------- | ||||
.. option:: AllowSoleDefaultDtor | .. option:: AllowSoleDefaultDtor | ||||
When set to `true` (default is `false`), this check doesn't flag classes with a sole, explicitly | When set to `true` (default is `true`), this check doesn't flag classes with a sole, explicitly | ||||
defaulted destructor. An example for such a class is: | defaulted destructor. An example for such a class is: | ||||
.. code-block:: c++ | .. code-block:: c++ | ||||
struct A { | struct A { | ||||
virtual ~A() = default; | virtual ~A() = default; | ||||
}; | }; | ||||
Show All 28 Lines |