[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:32 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
----------------
NagyDonat wrote:

```suggestion
marked as potentially throwing. Throwing exceptions from the following functions can be
```
As above, "throwable" would mean an exception-like object that can be thrown, not a function that can potentially throw exceptions. 

Please re-wrap the paragraph after applying this suggestion. 

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


More information about the cfe-commits mailing list