Skip to content

Commit 89c0e71

Browse files
committed
Suppression stuff
1 parent 8e50d1d commit 89c0e71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/suppressions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,12 @@ SuppressionList::Suppression::Result SuppressionList::Suppression::isSuppressed(
397397
if (!errorId.empty() && !matchglob(errorId, errmsg.errorId))
398398
return Result::Checked;
399399
} else {
400-
if (!fileName.empty() && fileName != errmsg.getFileName() && !PathMatch::match(fileName, errmsg.getFileName()))
401-
return Result::None;
402400
if ((SuppressionList::Type::unique == type) && (lineNumber != NO_LINE) && (lineNumber != errmsg.lineNumber)) {
403401
if (!thisAndNextLine || lineNumber + 1 != errmsg.lineNumber)
404402
return Result::None;
405403
}
404+
if (!fileName.empty() && fileName != errmsg.getFileName() && !PathMatch::match(fileName, errmsg.getFileName()))
405+
return Result::None;
406406
if (hash > 0 && hash != errmsg.hash)
407407
return Result::Checked;
408408
// the empty check is a hack to allow wildcard suppressions on IDs to be marked as checked

0 commit comments

Comments
 (0)