ADDED: API for injecting arbitrary DRC errors/warn

Allows external tools to calculate/represent specialized DRC errors on
the board

Fixes https://gitlab.com/kicad/code/kicad/issues/21727
This commit is contained in:
Seth Hillbrand
2025-10-14 11:55:36 -07:00
parent d9520f2b20
commit e005e75333
5 changed files with 115 additions and 0 deletions
+6
View File
@@ -30,6 +30,7 @@
#include <font/text_attributes.h>
#include <layer_ids.h>
#include <stroke_params.h>
#include <widgets/report_severity.h>
// Board-specific
#include <api/board/board_types.pb.h>
@@ -267,4 +268,9 @@ BOOST_AUTO_TEST_CASE( BoardStackupLayerType )
testEnums<BOARD_STACKUP_ITEM_TYPE, kiapi::board::BoardStackupLayerType>();
}
BOOST_AUTO_TEST_CASE( DrcSeverity )
{
testEnums<SEVERITY, kiapi::board::commands::DrcSeverity>( true );
}
BOOST_AUTO_TEST_SUITE_END()