KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KICAD_DIFF::VALIDATION_INPUT Struct Reference

Inputs needed to run the post-apply validator pipeline. More...

#include <merge_validation_pipeline.h>

Public Attributes

std::vector< REFDES_ENTRYrefdesEntries
 
bool planRequiredRebuild = false
 
bool applierReportedRebuild = false
 
int ancestorSchemaVersion = 0
 
int oursSchemaVersion = 0
 
int theirsSchemaVersion = 0
 

Detailed Description

Inputs needed to run the post-apply validator pipeline.

The applier collects this struct after the merged document is finalized and passes it to RunPostApplyValidators(). The struct intentionally carries only loose primitives (refdes vector, two bools, three ints) so the pipeline is testable without document-class fixtures.

  • refdesEntries: every refdes-bearing item in the merged document, paired with its KIID_PATH for cross-probe. Empty refdes entries are skipped by CheckRefdesUniqueness.
  • planRequiredRebuild: copy of MERGE_PLAN::requiresConnectivityRebuild – the engine's verdict.
  • applierReportedRebuild: true iff the applier actually performed the rebuild it was told to. This is the "did the caller honour the contract?" check.
  • ancestorSchemaVersion / oursSchemaVersion / theirsSchemaVersion: the per-side serialization versions. Mismatches surface as ERROR so the merge driver can refuse to write a file the loaders won't read.

Definition at line 55 of file merge_validation_pipeline.h.

Member Data Documentation

◆ ancestorSchemaVersion

◆ applierReportedRebuild

◆ oursSchemaVersion

◆ planRequiredRebuild

◆ refdesEntries

◆ theirsSchemaVersion


The documentation for this struct was generated from the following file: