Debian Codegraph @

clang-tools-extra/docs/clang-tidy/checks/performance/noexcept-destructor.rst

raw
1 .. title:: clang-tidy - performance-noexcept-destructor
2
3 performance-noexcept-destructor
4 ===============================
5
6 The check flags user-defined destructors marked with ``noexcept(expr)``
7 where ``expr`` evaluates to ``false`` (but is not a ``false`` literal itself).
8
9 When a destructor is marked as ``noexcept``, it assures the compiler that
10 no exceptions will be thrown during the destruction of an object, which
11 allows the compiler to perform certain optimizations such as omitting
12 exception handling code.