[clang-tidy] handle exceptions properly in `ExceptionAnalyzer`
authorisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Fri, 7 Oct 2022 22:23:33 +0000 (00:23 +0200)
committerisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Sun, 26 Feb 2023 22:18:13 +0000 (23:18 +0100)
commit0303eafcb34647f7d5a4015aad266b5766f5dc5e
treef2c4cae13ae042ee81b8b01afb1d003f6ea9b2db
parent80bb9477a97376a1c0a25a8c249db5518a9feb94
[clang-tidy] handle exceptions properly in `ExceptionAnalyzer`

This patch implements the exception handling rules found in
N4849 14.4 and as a result fixes many false positives in
the bugprone-exception-escape checker.

Differential Revision: https://reviews.llvm.org/D135495
clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.cpp
clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.h
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp