[clang-tools-extra] [clang-tidy] Fix `bugprone-exception-escape` not diagnosing throws in argument lists (PR #165955)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 3 08:19:59 PST 2025
================
@@ -605,6 +595,18 @@ ExceptionAnalyzer::throwsException(const Stmt *St,
ExceptionInfo Excs = throwsException(Child, Caught, CallStack);
Results.merge(Excs);
}
+
+ if (const auto *Call = dyn_cast<CallExpr>(St)) {
----------------
vbvictor wrote:
Can we write a comment here why we check for calls/constructors after children.
https://github.com/llvm/llvm-project/pull/165955
More information about the cfe-commits
mailing list