Skip to content

Commit ab8907b

Browse files
Update suppressions.cpp
1 parent cded2bd commit ab8907b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/suppressions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ void SuppressionList::dump(std::ostream & out, const std::string& filePath) cons
518518

519519
out << " <suppressions>" << std::endl;
520520
for (const Suppression &suppression : mSuppressions) {
521-
if (!filePath.empty() && !suppression.fileName.empty() && filePath != suppression.fileName)
521+
if (suppression.isInline && !suppression.fileName.empty() && !filePath.empty() && filePath != suppression.fileName)
522522
continue;
523523
out << " <suppression";
524524
out << " errorId=\"" << ErrorLogger::toxml(suppression.errorId) << '"';

0 commit comments

Comments
 (0)