pub fn compare(
view: &AuditAnalysesView<'_>,
base: Option<&AuditKeySnapshot>,
syntactic_fallback: bool,
change: &RunChange<'_>,
) -> AuditComparisonExpand description
Classify every head finding once against the base snapshot.
With syntactic_fallback set (the degraded type-aware path), dead code
compares against the syntactic keys of the base, and a head finding that
only semantic evidence produced stays advisory: it has no syntactic base
counterpart to compare with.
change holds the files that the change touched or deleted, and its
diff. A complexity finding of a function that the change moved between
two of those files compares with its base finding (see
classify_complexity_attribution_against_all_with_moves). An unused
symbol that the change moved is inherited (see audit_moved.rs). The
clone groups compare by key here, and attribute_clone_regions grades
them as regions.