From ba5730a59814d34d3b9cdb43d0399cd8dcaa08f0 Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 2 Dec 2025 01:04:26 +0100 Subject: [PATCH] CppCheck: removed duplicated exception handling from `checkInternal()` [skip ci] --- lib/cppcheck.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7a637c8b7b3..941f4d99c81 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1235,11 +1235,6 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str ErrorMessage errmsg = ErrorMessage::fromInternalError(e, &tokenizer.list, file.spath()); mErrorLogger.reportErr(errmsg); } - } catch (const TerminateException &) { - // Analysis is terminated - if (analyzerInformation) - mLogger->setAnalyzerInfo(nullptr); - return mLogger->exitcode(); } catch (const InternalError &e) { ErrorMessage errmsg = ErrorMessage::fromInternalError(e, nullptr, file.spath()); mErrorLogger.reportErr(errmsg);