[PATCH] D152330: [clang-tidy] Check functions called from catch blocks

Deniz Evrenci via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 18:28:22 PDT 2023


denizevrenci created this revision.
denizevrenci added reviewers: njames93, PiotrZSL, ChuanqiXu.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
denizevrenci requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

These functions can rethrow a current exception that is caught by the
catch block. We can pass the currently caught excections to the function
declaration analyzer just like the statement analyzer to handle this
case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152330

Files:
  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-coro.cpp
  clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-rethrow.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152330.529118.patch
Type: text/x-patch
Size: 12856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230607/bc8233f0/attachment-0001.bin>


More information about the cfe-commits mailing list