brintos

brintos / llvm-project-archived public Read only

0
0
Text · 404 B · 00e4e47 Raw
16 lines · plain
1.. title:: clang-tidy - performance-trivially-destructible2 3performance-trivially-destructible4==================================5 6Finds types that could be made trivially-destructible by removing out-of-line7defaulted destructor declarations.8 9.. code-block:: c++10 11   struct A: TrivialType {12     ~A(); // Makes A non-trivially-destructible.13     TrivialType trivial_fields;14   };15   A::~A() = default;16