Add purgedConfiguration to list of error ids. (#1087)
purgedConfiguration was not showing up in the GUI supression list.
This commit is contained in:
parent
f5b91ffca8
commit
d68f07e50c
|
@ -799,6 +799,8 @@ void CppCheck::getErrorMessages()
|
|||
s.addEnabled("performance");
|
||||
s.addEnabled("information");
|
||||
|
||||
purgedConfigurationMessage("","");
|
||||
|
||||
tooManyConfigs = true;
|
||||
tooManyConfigsError("",0U);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue