[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
Mon Jan 19 08:03:33 PST 2026
================
@@ -0,0 +1,31 @@
+.. title:: clang-tidy - bugprone-unsafe-to-allow-exceptions
+
+bugprone-unsafe-to-allow-exceptions
+===================================
+
+Finds functions where throwing exceptions is unsafe but the function is still
+marked as throwable. Throwing exceptions from the following functions can be
+problematic:
----------------
NagyDonat wrote:
I think the documentation should explain _why_ is it problematic to throw exceptions from these functions. (Leaves a certain object in an undefined state; leads to abnormal termination of the program etc.)
https://github.com/llvm/llvm-project/pull/176430
More information about the cfe-commits
mailing list