assert(priv_->reporter_ == 0);
priv_->leaf_changes_only_ = f;
+ // So when we are showing only leaf changes, we want to show
+ // redundant changes because of this: Suppose several functions have
+ // their return type changed from void* to int*. We want them all
+ // to be reported. In that case the change is not redundant. As
+ // far as user-defined type changes (like struct/class) they are
+ // already put inside a map which makes them be non-redundant, so we
+ // don't have to worry about that case.
+ //
+ // TODO: maybe that in this case we should avoid firing the
+ // redundancy analysis pass altogether. That could help save a
+ // couple of CPU cycle here and there!
+ priv_->show_redundant_changes_ = f;
}
/// Get the flag that indicates if the diff using this context should