Rename errorlist=>mShowAllErrors

This commit is contained in:
Daniel Marjamäki 2019-07-15 18:31:12 +02:00
parent a6194b81aa
commit 96a1c6dec5
2 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@
/*static*/ FILE* CppCheckExecutor::mExceptionOutput = stdout;
CppCheckExecutor::CppCheckExecutor()
: mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), errorlist(false)
: mSettings(nullptr), latestProgressOutputTime(0), mErrorOutput(nullptr), mShowAllErrors(false)
{
}
@ -105,7 +105,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
}
if (parser.getShowErrorMessages()) {
errorlist = true;
mShowAllErrors = true;
std::cout << ErrorLogger::ErrorMessage::getXMLHeader();
cppcheck->getErrorMessages();
std::cout << ErrorLogger::ErrorMessage::getXMLFooter() << std::endl;
@ -1054,7 +1054,7 @@ void CppCheckExecutor::reportStatus(std::size_t fileindex, std::size_t filecount
void CppCheckExecutor::reportErr(const ErrorLogger::ErrorMessage &msg)
{
if (errorlist) {
if (mShowAllErrors) {
reportOut(msg.toXML());
} else if (mSettings->xml) {
reportErr(msg.toXML());

View File

@ -190,7 +190,7 @@ private:
/**
* Has --errorlist been given?
*/
bool errorlist;
bool mShowAllErrors;
};
#endif // CPPCHECKEXECUTOR_H