Renamed _simplify
This commit is contained in:
parent
b90d1bc020
commit
cb0bea1749
|
@ -54,7 +54,7 @@ static TimerResults S_timerResults;
|
||||||
static const CWE CWE398(398U); // Indicator of Poor Code Quality
|
static const CWE CWE398(398U); // Indicator of Poor Code Quality
|
||||||
|
|
||||||
CppCheck::CppCheck(ErrorLogger &errorLogger, bool useGlobalSuppressions)
|
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);
|
checkUnusedFunctions.parseTokens(mTokenizer, filename.c_str(), &mSettings);
|
||||||
|
|
||||||
// simplify more if required, skip rest of iteration if failed
|
// simplify more if required, skip rest of iteration if failed
|
||||||
if (_simplify) {
|
if (mSimplify) {
|
||||||
// if further simplification fails then skip rest of iteration
|
// if further simplification fails then skip rest of iteration
|
||||||
Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &S_timerResults);
|
Timer timer3("Tokenizer::simplifyTokenList2", mSettings.showtime, &S_timerResults);
|
||||||
result = mTokenizer.simplifyTokenList2();
|
result = mTokenizer.simplifyTokenList2();
|
||||||
|
|
|
@ -126,7 +126,7 @@ public:
|
||||||
void purgedConfigurationMessage(const std::string &file, const std::string& configuration);
|
void purgedConfigurationMessage(const std::string &file, const std::string& configuration);
|
||||||
|
|
||||||
void dontSimplify() {
|
void dontSimplify() {
|
||||||
_simplify = false;
|
mSimplify = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Analyse whole program, run this after all TUs has been scanned.
|
/** Analyse whole program, run this after all TUs has been scanned.
|
||||||
|
@ -221,7 +221,7 @@ private:
|
||||||
bool tooManyConfigs;
|
bool tooManyConfigs;
|
||||||
|
|
||||||
/** Simplify code? true by default */
|
/** Simplify code? true by default */
|
||||||
bool _simplify;
|
bool mSimplify;
|
||||||
|
|
||||||
/** File info used for whole program analysis */
|
/** File info used for whole program analysis */
|
||||||
std::list<Check::FileInfo*> mFileInfo;
|
std::list<Check::FileInfo*> mFileInfo;
|
||||||
|
|
Loading…
Reference in New Issue