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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-coro.cpp | ||
---|---|---|
132–136 | I don't know clang-tidy a lot. But is these two branches different in clang-tidy really? |
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-coro.cpp | ||
---|---|---|
132–136 | Yes, rethrows are handled differently than throw expressions with arguments. You can find the relevant implementation in ExceptionAnalyzer.cpp:[462:475]. |
Comment Actions
LGTM. And please wait for several days for other reviewers.
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-coro.cpp | ||
---|---|---|
132–136 | OK, sounds good to me. |
I don't know clang-tidy a lot. But is these two branches different in clang-tidy really?