Merge pull request #632 from Dmitry-Me/breakListTraversalEarly
Break list traversal once first match is found
This commit is contained in:
commit
4c843eb171
|
@ -366,8 +366,10 @@ void ErrorLogger::reportUnmatchedSuppressions(const std::list<Suppressions::Supp
|
||||||
for (std::list<Suppressions::SuppressionEntry>::const_iterator i2 = unmatched.begin(); i2 != unmatched.end(); ++i2) {
|
for (std::list<Suppressions::SuppressionEntry>::const_iterator i2 = unmatched.begin(); i2 != unmatched.end(); ++i2) {
|
||||||
if (i2->id == "unmatchedSuppression") {
|
if (i2->id == "unmatchedSuppression") {
|
||||||
if ((i2->file == "*" || i2->file == i->file) &&
|
if ((i2->file == "*" || i2->file == i->file) &&
|
||||||
(i2->line == 0 || i2->line == i->line))
|
(i2->line == 0 || i2->line == i->line)) {
|
||||||
suppressed = true;
|
suppressed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue