[clang-tools-extra] [clang-tidy][NFC] fix typo in ExceptionAnalyzer; `replace count()>0` with `contains` (PR #116635)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 02:11:43 PST 2024
================
@@ -449,7 +449,8 @@ void ExceptionAnalyzer::ExceptionInfo::reevaluateBehaviour() {
ExceptionAnalyzer::ExceptionInfo ExceptionAnalyzer::throwsException(
const FunctionDecl *Func, const ExceptionInfo::Throwables &Caught,
llvm::SmallSet<const FunctionDecl *, 32> &CallStack) {
- if (!Func || CallStack.count(Func) || (!CallStack.empty() && !canThrow(Func)))
----------------
HerrCai0907 wrote:
After change (`count` to `contains`), it is more than 80 characters. 😆
https://github.com/llvm/llvm-project/pull/116635
More information about the cfe-commits
mailing list