bolt/deps/llvm-18.1.8/clang-tools-extra/docs/clang-tidy/checks/performance/trivially-destructible.rst

16 lines
404 B
ReStructuredText
Raw Normal View History

2025-02-14 19:21:04 +01:00
.. title:: clang-tidy - performance-trivially-destructible
performance-trivially-destructible
==================================
Finds types that could be made trivially-destructible by removing out-of-line
defaulted destructor declarations.
.. code-block:: c++
struct A: TrivialType {
~A(); // Makes A non-trivially-destructible.
TrivialType trivial_fields;
};
A::~A() = default;