[PATCH] D148462: [clang-tidy] Ignore declarations in bugprone-exception-escape
Domján Dániel via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 13:20:47 PDT 2023
isuckatcs added a comment.
I think the original behaviour was fine. The warning was emitted at every occurence of the function. It might be confusing if it's only emitted for the definition.
Also what happens in the following scenario:
int indirectly_recursive(int n) noexcept;
int recursion_helper(int n) noexcept {
indirectly_recursive(n);
}
We know that `indirectly_recursive(int n)` throws when it shouldn't and that means `recursion_helper(int n)` will also throw when it shouldn't either.
Is it reported properly with this change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148462/new/
https://reviews.llvm.org/D148462
More information about the cfe-commits
mailing list