From 19c105cdf96c15f36dd696a4dcc2635f873a7239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 21 Aug 2016 12:31:26 +0200 Subject: [PATCH] Fixed #7677 (skipping of configurations broken?) --- lib/cppcheck.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 8ecb64d61..879c92c7d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -280,8 +280,11 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin // Skip if we already met the same simplified token list if (_settings.force || _settings.maxConfigs > 1) { const unsigned long long checksum = _tokenizer.list.calculateChecksum(); - if (checksums.find(checksum) != checksums.end()) + if (checksums.find(checksum) != checksums.end()) { + if (_settings.isEnabled("information") && (_settings.debug || _settings.verbose)) + purgedConfigurationMessage(filename, cfg); continue; + } checksums.insert(checksum); } @@ -302,8 +305,6 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin } } catch (const InternalError &e) { - if (_settings.isEnabled("information") && (_settings.debug || _settings.verbose)) - purgedConfigurationMessage(filename, cfg); internalErrorFound=true; std::list locationList; ErrorLogger::ErrorMessage::FileLocation loc;