[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Sun May 25 18:59:17 PDT 2025
================
@@ -377,6 +402,8 @@ Task<int, false, false, false, false, true> h_ShouldDiag(const int a,
// CHECK-MESSAGES: :[[@LINE-2]]:45: warning: an exception may be thrown in function 'h_ShouldDiag' which should not throw exceptions
co_yield a / b;
}
+// CHECK-MESSAGES: :133:7: note: frame #0: unhandled exception may be thrown in function 'unhandled_exception' here
----------------
HerrCai0907 wrote:
Personally I do not like hard code line number in FileCheck, but I don't know how to resolve this issue. @EugeneZelenko Is there any better solution to avoid it?
https://github.com/llvm/llvm-project/pull/134375
More information about the cfe-commits
mailing list