From c5e057696130b1e3f12c4f874ec7417194b12eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jun 2018 07:31:34 +0200 Subject: [PATCH] Renamed analyzerInformation --- lib/cppcheck.cpp | 10 +++++----- lib/cppcheck.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 1d69b0877..3e2e5f957 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -245,7 +245,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string // Calculate checksum so it can be compared with old checksum / future checksums const unsigned int checksum = preprocessor.calculateChecksum(tokens1, toolinfo); std::list errors; - if (!analyzerInformation.analyzeFile(mSettings.buildDir, filename, cfgname, checksum, &errors)) { + if (!mAnalyzerInformation.analyzeFile(mSettings.buildDir, filename, cfgname, checksum, &errors)) { while (!errors.empty()) { reportErr(errors.front()); errors.pop_front(); @@ -485,8 +485,8 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string exitcode=1; // e.g. reflect a syntax error } - analyzerInformation.setFileInfo("CheckUnusedFunctions", checkUnusedFunctions.analyzerInfo()); - analyzerInformation.close(); + mAnalyzerInformation.setFileInfo("CheckUnusedFunctions", checkUnusedFunctions.analyzerInfo()); + mAnalyzerInformation.close(); // In jointSuppressionReport mode, unmatched suppressions are // collected after all files are processed @@ -556,7 +556,7 @@ void CppCheck::checkNormalTokens(const Tokenizer &tokenizer) Check::FileInfo *fi = (*it)->getFileInfo(&tokenizer, &mSettings); if (fi != nullptr) { fileInfo.push_back(fi); - analyzerInformation.setFileInfo((*it)->name(), fi->toString()); + mAnalyzerInformation.setFileInfo((*it)->name(), fi->toString()); } } @@ -775,7 +775,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg) mErrorList.push_back(errmsg); mErrorLogger.reportErr(msg); - analyzerInformation.reportErr(msg, mSettings.verbose); + mAnalyzerInformation.reportErr(msg, mSettings.verbose); if (!mSettings.plistOutput.empty() && plistFile.is_open()) { plistFile << ErrorLogger::plistData(msg); } diff --git a/lib/cppcheck.h b/lib/cppcheck.h index b46f47e1b..01c87d777 100644 --- a/lib/cppcheck.h +++ b/lib/cppcheck.h @@ -226,7 +226,7 @@ private: /** File info used for whole program analysis */ std::list fileInfo; - AnalyzerInformation analyzerInformation; + AnalyzerInformation mAnalyzerInformation; }; /// @}