Renamed _errorList
This commit is contained in:
parent
d9aeeb1d09
commit
b992b4a4f0
|
@ -494,7 +494,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
|
||||||
reportUnmatchedSuppressions(mSettings.nomsg.getUnmatchedLocalSuppressions(filename, isUnusedFunctionCheckEnabled()));
|
reportUnmatchedSuppressions(mSettings.nomsg.getUnmatchedLocalSuppressions(filename, isUnusedFunctionCheckEnabled()));
|
||||||
}
|
}
|
||||||
|
|
||||||
_errorList.clear();
|
mErrorList.clear();
|
||||||
if (internalErrorFound && (exitcode==0)) {
|
if (internalErrorFound && (exitcode==0)) {
|
||||||
exitcode=1;
|
exitcode=1;
|
||||||
}
|
}
|
||||||
|
@ -756,7 +756,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Alert only about unique errors
|
// Alert only about unique errors
|
||||||
if (std::find(_errorList.begin(), _errorList.end(), errmsg) != _errorList.end())
|
if (std::find(mErrorList.begin(), mErrorList.end(), errmsg) != mErrorList.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
|
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
|
||||||
|
@ -772,7 +772,7 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
|
||||||
if (!mSettings.nofail.isSuppressed(errorMessage) && (_useGlobalSuppressions || !mSettings.nomsg.isSuppressed(errorMessage)))
|
if (!mSettings.nofail.isSuppressed(errorMessage) && (_useGlobalSuppressions || !mSettings.nomsg.isSuppressed(errorMessage)))
|
||||||
exitcode = 1;
|
exitcode = 1;
|
||||||
|
|
||||||
_errorList.push_back(errmsg);
|
mErrorList.push_back(errmsg);
|
||||||
|
|
||||||
mErrorLogger.reportErr(msg);
|
mErrorLogger.reportErr(msg);
|
||||||
analyzerInformation.reportErr(msg, mSettings.verbose);
|
analyzerInformation.reportErr(msg, mSettings.verbose);
|
||||||
|
|
|
@ -198,7 +198,7 @@ private:
|
||||||
*/
|
*/
|
||||||
virtual void reportOut(const std::string &outmsg) override;
|
virtual void reportOut(const std::string &outmsg) override;
|
||||||
|
|
||||||
std::list<std::string> _errorList;
|
std::list<std::string> mErrorList;
|
||||||
Settings mSettings;
|
Settings mSettings;
|
||||||
|
|
||||||
void reportProgress(const std::string &filename, const char stage[], const std::size_t value) override;
|
void reportProgress(const std::string &filename, const char stage[], const std::size_t value) override;
|
||||||
|
|
Loading…
Reference in New Issue