[clang-tools-extra] [clang-tidy] Add options to throw unannotated functions in `bugprone-exception-escape` (PR #168324)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 6 05:47:49 PST 2026
================
@@ -111,6 +150,9 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) {
"%0 which should not throw exceptions")
<< MatchedDecl;
+ if (Info.getExceptions().empty())
+ return;
----------------
vbvictor wrote:
Sure
https://github.com/llvm/llvm-project/pull/168324
More information about the cfe-commits
mailing list