[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 13 09:02:37 PDT 2025
================
@@ -28,6 +29,12 @@ class ExceptionAnalyzer {
///< definition.
};
+ /// We use a SetVector to preserve the order of the functions in the call
+ /// stack as well as have fast lookup.
+ using CallStack = llvm::SetVector<const FunctionDecl *,
+ llvm::SmallVector<const FunctionDecl *, 32>,
+ llvm::DenseSet<const FunctionDecl *>, 32>;
----------------
PiotrZSL wrote:
instead of pointing to FunctionDecl, better would be to point a place in those functions where next function is called if possible.
https://github.com/llvm/llvm-project/pull/134375
More information about the cfe-commits
mailing list