[clang-tools-extra] [clang-tidy] Add frames for bugprone-exception-escape options (PR #187971)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 5 02:47:06 PDT 2026


================
@@ -134,6 +144,10 @@ class ExceptionAnalyzer {
     /// based on analyzer configuration.
     bool ThrowsUnknown = false;
 
+    /// Location info for the assumed-throwing function when ThrowsUnknown is
+    /// true. May be invalid if no location is available.
+    ThrowInfo UnknownThrowInfo;
----------------
vbvictor wrote:

Can we not add new fields here.
I think we can still reuse `ThrownExceptions` variable for storing exceptions.
Inside `const Type*` put `nullptr` (unknown type)

Also, all added methods should be removed since they will not be used anymore

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


More information about the cfe-commits mailing list