[clang-tools-extra] [clang-tidy][NFC] fix typo in ExceptionAnalyzer; `replace count()>0` with `contains` (PR #116635)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 02:56:37 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)))
----------------
nicovank wrote:

Oops, right I misread. Thanks!

https://github.com/llvm/llvm-project/pull/116635


More information about the cfe-commits mailing list