[clang-tools-extra] [clang-tidy] Add check 'bugprone-unsafe-to-allow-exceptions' (PR #176430)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 5 07:59:48 PST 2026


================
@@ -28,7 +28,9 @@ Functions declared explicitly with ``noexcept(false)`` or ``throw(exception)``
 will be excluded from the analysis, as even though it is not recommended for
 functions like ``swap()``, ``main()``, move constructors, move assignment
 operators and destructors, it is a clear indication of the developer's
-intention and should be respected.
+intention and should be respected. To still check for this situation, the check
----------------
NagyDonat wrote:

Done in https://github.com/llvm/llvm-project/pull/176430/changes/b4840d4f2c73b7dc4d3cca49968d9d75a6eb8098

https://github.com/llvm/llvm-project/pull/176430


More information about the cfe-commits mailing list