enum_type_decl_sptr first = d.first_enum(), second = d.second_enum();
- report_name_size_and_alignment_changes(first, second, d.context(),
+ const diff_context_sptr& ctxt = d.context();
+ report_name_size_and_alignment_changes(first, second, ctxt,
out, indent);
- maybe_report_diff_for_member(first, second, d.context(), out, indent);
+ maybe_report_diff_for_member(first, second, ctxt, out, indent);
//underlying type
d.underlying_type_diff()->report(out, indent);
<< "' from value '"
<< i->first.get_value() << "' to '"
<< i->second.get_value() << "'";
- report_loc_info(second, *d.context(), out);
+ report_loc_info(second, *ctxt, out);
out << "\n";
}
}
- if (d.context()->show_leaf_changes_only())
+ if (ctxt->show_leaf_changes_only())
maybe_report_interfaces_impacted_by_diff(&d, out, indent);
d.reported_once(true);