KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_rule.cpp File Reference
#include <board.h>
#include <board_item.h>
#include <api/api_enums.h>
#include <api/board/board.pb.h>
#include <base_units.h>
#include <drc/drc_rule.h>
#include <drc/drc_rule_condition.h>

Go to the source code of this file.

Functions

bool IsComponentClassSelector (const wxString &aToken)
 ${Class:X} inside a DRC rule is a component-class selector consumed by testFootprintSelector(), not a text variable.
 

Function Documentation

◆ IsComponentClassSelector()

bool IsComponentClassSelector ( const wxString & aToken)

${Class:X} inside a DRC rule is a component-class selector consumed by testFootprintSelector(), not a text variable.

Text-variable expansion and unresolved-variable checks must leave it intact. aToken is the contents between ${ and }.

Definition at line 30 of file drc_rule.cpp.

Referenced by DRC_RULES_PARSER::checkUnresolvedTextVariable(), DRC_ENGINE::loadRules(), PANEL_SETUP_RULES::OnCompile(), and PANEL_SETUP_RULES::OnShowMatching().