13 lines · plain
1.. title:: clang-tidy - performance-noexcept-destructor2 3performance-noexcept-destructor4===============================5 6The check flags user-defined destructors marked with ``noexcept(expr)``7where ``expr`` evaluates to ``false`` (but is not a ``false`` literal itself).8 9When a destructor is marked as ``noexcept``, it assures the compiler that10no exceptions will be thrown during the destruction of an object, which11allows the compiler to perform certain optimizations such as omitting12exception handling code.13