Add purgedConfiguration to list of error ids. (#1087)

purgedConfiguration was not showing up in the GUI supression list.
This commit is contained in:
IOBYTE 2018-02-10 16:30:49 -05:00 committed by Daniel Marjamäki
parent f5b91ffca8
commit d68f07e50c
2 changed files with 16 additions and 0 deletions

View File

@ -799,6 +799,8 @@ void CppCheck::getErrorMessages()
s.addEnabled("performance");
s.addEnabled("information");
purgedConfigurationMessage("","");
tooManyConfigs = true;
tooManyConfigsError("",0U);

View File

@ -90,6 +90,20 @@ private:
}
}
ASSERT_EQUALS("", duplicate);
// Check for error ids from this class.
bool foundPurgedConfiguration = false;
bool foundTooManyConfigs = false;
for (std::list<std::string>::iterator it = errorLogger.id.begin();
it != errorLogger.id.end();
++it) {
if (*it == "purgedConfiguration")
foundPurgedConfiguration = true;
else if (*it == "toomanyconfigs")
foundTooManyConfigs = true;
}
ASSERT(foundPurgedConfiguration);
ASSERT(foundTooManyConfigs);
}
};