KiCad PCB EDA Suite
Loading...
Searching...
No Matches
report_severity.cpp File Reference
#include <widgets/report_severity.h>
#include <i18n_utility.h>
#include <vector>
#include <wx/arrstr.h>

Go to the source code of this file.

Functions

wxString formatSeverities (int aSeverities)
 Convert a severity mask to a human-readable comma-separated string.
 

Function Documentation

◆ formatSeverities()

wxString formatSeverities ( int aSeverities)

Convert a severity mask to a human-readable comma-separated string.

Parameters
aSeveritiesA bitmask of SEVERITY values
Returns
A translated string like "Errors, Warnings"

Definition at line 26 of file report_severity.cpp.

References result, RPT_SEVERITY_ERROR, RPT_SEVERITY_EXCLUSION, and RPT_SEVERITY_WARNING.

Referenced by ERC_REPORT::GetTextReport(), and DRC_REPORT::WriteTextReport().