llvm-project
6ac286cd - [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (#134375)

Commit
113 days ago
[clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (#134375) This PR add stacktrace of escaped exception to `bugprone-exception-escape` check. Changes: 1. Modified `ExceptionAnalyzer` and `ExceptionInfo` classes to hold stacktrace of escaped exception in `llvm::MapVector`. `llvm::MapVector` is needed to hold relative positions of functions in stack as well as have fast lookup. 2. Added new diagnostics based of `misc-no-recursion` check. Fixes https://github.com/llvm/llvm-project/issues/87422.
Author
Parents
Loading