We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
addSuppression()
1 parent 9352b8c commit a178c86Copy full SHA for a178c86
lib/suppressions.cpp
@@ -249,8 +249,9 @@ std::string Suppressions::addSuppression(Suppressions::Suppression suppression)
249
auto foundSuppression = std::find_if(mSuppressions.begin(), mSuppressions.end(),
250
std::bind(&Suppression::isSameParameters, &suppression, std::placeholders::_1));
251
if (foundSuppression != mSuppressions.end()) {
252
- // Update matched state of existing global suppression
253
- if (!suppression.isLocal() && suppression.matched)
+ if (suppression.checked)
+ foundSuppression->checked = suppression.checked;
254
+ if (suppression.matched)
255
foundSuppression->matched = suppression.matched;
256
return "";
257
}
0 commit comments