From cb0bea1749316db63df487244ffb824617983659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jun 2018 07:37:10 +0200 Subject: [PATCH] Renamed _simplify --- lib/cppcheck.cpp | 4 ++-- lib/cppcheck.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 575a73337..a85553ceb 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -54,7 +54,7 @@ static TimerResults S_timerResults; static const CWE CWE398(398U); // Indicator of Poor Code Quality CppCheck::CppCheck(ErrorLogger &errorLogger, bool useGlobalSuppressions) - : mErrorLogger(errorLogger), exitcode(0), mUseGlobalSuppressions(useGlobalSuppressions), tooManyConfigs(false), _simplify(true) + : mErrorLogger(errorLogger), exitcode(0), mUseGlobalSuppressions(useGlobalSuppressions), tooManyConfigs(false), mSimplify(true) { } @@ -408,7 +408,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string checkUnusedFunctions.parseTokens(mTokenizer, filename.c_str(), &mSettings); // simplify more if required, skip rest of iteration if failed - if (_simplify) { + if (mSimplify) { // if further simplification fails then skip rest of iteration Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &S_timerResults); result = mTokenizer.simplifyTokenList2(); diff --git a/lib/cppcheck.h b/lib/cppcheck.h index 10544dfd0..92f2c2443 100644 --- a/lib/cppcheck.h +++ b/lib/cppcheck.h @@ -126,7 +126,7 @@ public: void purgedConfigurationMessage(const std::string &file, const std::string& configuration); void dontSimplify() { - _simplify = false; + mSimplify = false; } /** Analyse whole program, run this after all TUs has been scanned. @@ -221,7 +221,7 @@ private: bool tooManyConfigs; /** Simplify code? true by default */ - bool _simplify; + bool mSimplify; /** File info used for whole program analysis */ std::list mFileInfo;