|
KiCad PCB EDA Suite
|
#include <bitset>#include <optional>#include <wx/intl.h>#include <kiid.h>#include <core/typeinfo.h>#include <core/minoptmax.h>#include <drc/drc_constraint_types.h>#include <layer_ids.h>#include <lset.h>#include <eda_units.h>#include <zones.h>#include <libeval_compiler/libeval_compiler.h>#include <widgets/report_severity.h>Go to the source code of this file.
Classes | |
| class | DRC_RULE |
| class | DRC_CONSTRAINT |
Namespaces | |
| namespace | kiapi |
| namespace | kiapi::board |
Functions | |
| const DRC_CONSTRAINT * | GetConstraint (const BOARD_ITEM *aItem, const BOARD_ITEM *bItem, int aConstraint, PCB_LAYER_ID aLayer, wxString *aRuleName=nullptr) |
| bool | IsComponentClassSelector (const wxString &aToken) |
| ${Class:X} inside a DRC rule is a component-class selector consumed by testFootprintSelector(), not a text variable. | |
| const DRC_CONSTRAINT * GetConstraint | ( | const BOARD_ITEM * | aItem, |
| const BOARD_ITEM * | bItem, | ||
| int | aConstraint, | ||
| PCB_LAYER_ID | aLayer, | ||
| wxString * | aRuleName = nullptr ) |
| 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 32 of file drc_rule.cpp.
Referenced by DRC_RULES_PARSER::checkUnresolvedTextVariable(), DRC_ENGINE::loadRules(), PANEL_SETUP_RULES::OnCompile(), and PANEL_SETUP_RULES::OnShowMatching().