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

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 5 04:45:47 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;
----------------
zeyi2 wrote:

We would have to change an assert in order to implement it this way. That `assert()` was introduced in https://github.com/llvm/llvm-project/commit/32d5b252b928105216a9b9fac7862fc1268de977 (reviews at https://reviews.llvm.org/D57883).

Should be safe though.

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


More information about the cfe-commits mailing list