Lines Matching defs:diff_tree
11407 /// @param diff_tree the diff sub-tree to walk for categorization
11410 propagate_categories(diff* diff_tree)
11413 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11414 diff_tree->context()->forbid_visiting_a_node_twice(true);
11415 diff_tree->context()->forget_visited_diffs();
11416 diff_tree->traverse(v);
11417 diff_tree->context()->forbid_visiting_a_node_twice(s);
11424 /// @param diff_tree the diff sub-tree to walk for categorization
11427 propagate_categories(diff_sptr diff_tree)
11428 {propagate_categories(diff_tree.get());}
11434 /// @param diff_tree the corpus_diff tree to walk for categorization
11437 propagate_categories(corpus_diff* diff_tree)
11440 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11441 diff_tree->context()->forbid_visiting_a_node_twice(false);
11442 diff_tree->traverse(v);
11443 diff_tree->context()->forbid_visiting_a_node_twice(s);
11450 /// @param diff_tree the corpus_diff tree to walk for categorization
11453 propagate_categories(corpus_diff_sptr diff_tree)
11454 {propagate_categories(diff_tree.get());}
11681 /// @param diff_tree the diff-sub tree to apply the suppressions to.
11683 apply_suppressions(diff* diff_tree)
11685 if (diff_tree && !diff_tree->context()->suppressions().empty())
11690 diff_tree->context()->forget_visited_diffs();
11691 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11692 diff_tree->context()->forbid_visiting_a_node_twice(true);
11693 diff_tree->traverse(v);
11694 diff_tree->context()->forbid_visiting_a_node_twice(s);
11703 /// @param diff_tree the diff-sub tree to apply the suppressions to.
11705 apply_suppressions(diff_sptr diff_tree)
11706 {apply_suppressions(diff_tree.get());}
11713 /// @param diff_tree the diff tree to apply the suppressions to.
11715 apply_suppressions(const corpus_diff* diff_tree)
11717 if (diff_tree && !diff_tree->context()->suppressions().empty())
11723 diff_tree->context()->forget_visited_diffs();
11724 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11725 diff_tree->context()->forbid_visiting_a_node_twice(true);
11726 const_cast<corpus_diff*>(diff_tree)->traverse(v);
11727 diff_tree->context()->forbid_visiting_a_node_twice(s);
11732 diff_tree->priv_->
11742 /// @param diff_tree the diff tree to apply the suppressions to.
11744 apply_suppressions(corpus_diff_sptr diff_tree)
11745 {apply_suppressions(diff_tree.get());}
11850 /// @param diff_tree the sub-tree to emit the textual representation
11854 /// for @p diff_tree to.
11856 print_diff_tree(diff* diff_tree, ostream& out)
11859 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11860 diff_tree->context()->forbid_visiting_a_node_twice(false);
11861 diff_tree->traverse(p);
11862 diff_tree->context()->forbid_visiting_a_node_twice(s);
11868 /// @param diff_tree the @ref corpus_diff tree to emit the textual
11872 /// for @p diff_tree to.
11874 print_diff_tree(corpus_diff* diff_tree, std::ostream& out)
11877 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
11878 diff_tree->context()->forbid_visiting_a_node_twice(false);
11879 diff_tree->traverse(p);
11880 diff_tree->context()->forbid_visiting_a_node_twice(s);
11886 /// @param diff_tree the sub-tree to emit the textual representation
11890 /// for @p diff_tree to.
11892 print_diff_tree(diff_sptr diff_tree,
11894 {print_diff_tree(diff_tree.get(), o);}
11899 /// @param diff_tree the @ref corpus_diff tree to emit the textual
11903 /// for @p diff_tree to.
11905 print_diff_tree(corpus_diff_sptr diff_tree,
11907 {print_diff_tree(diff_tree.get(), o);}
12182 /// @param diff_tree the @ref diff sub-tree to walk.
12184 categorize_redundancy(diff* diff_tree)
12186 if (diff_tree->context()->show_redundant_changes())
12189 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
12190 diff_tree->context()->forbid_visiting_a_node_twice(false);
12191 diff_tree->traverse(v);
12192 diff_tree->context()->forbid_visiting_a_node_twice(s);
12198 /// @param diff_tree the @ref diff sub-tree to walk.
12200 categorize_redundancy(diff_sptr diff_tree)
12201 {categorize_redundancy(diff_tree.get());}
12206 /// @param diff_tree the @ref corpus_diff tree to walk.
12208 categorize_redundancy(corpus_diff* diff_tree)
12211 diff_tree->context()->forget_visited_diffs();
12212 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
12213 diff_tree->context()->forbid_visiting_a_node_twice(false);
12214 diff_tree->traverse(v);
12215 diff_tree->context()->forbid_visiting_a_node_twice(s);
12221 /// @param diff_tree the @ref corpus_diff tree to walk.
12223 categorize_redundancy(corpus_diff_sptr diff_tree)
12224 {categorize_redundancy(diff_tree.get());}
12231 /// @param diff_tree the @ref diff sub-tree to walk.
12233 clear_redundancy_categorization(diff* diff_tree)
12236 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
12237 diff_tree->context()->forbid_visiting_a_node_twice(false);
12238 diff_tree->traverse(v);
12239 diff_tree->context()->forbid_visiting_a_node_twice(s);
12240 diff_tree->context()->forget_visited_diffs();
12246 /// @param diff_tree the @ref diff sub-tree to walk.
12248 clear_redundancy_categorization(diff_sptr diff_tree)
12249 {clear_redundancy_categorization(diff_tree.get());}
12254 /// @param diff_tree the @ref corpus_diff tree to walk.
12256 clear_redundancy_categorization(corpus_diff* diff_tree)
12259 bool s = diff_tree->context()->visiting_a_node_twice_is_forbidden();
12260 diff_tree->context()->forbid_visiting_a_node_twice(false);
12261 diff_tree->traverse(v);
12262 diff_tree->context()->forbid_visiting_a_node_twice(s);
12263 diff_tree->context()->forget_visited_diffs();
12269 /// @param diff_tree the @ref corpus_diff tree to walk.
12271 clear_redundancy_categorization(corpus_diff_sptr diff_tree)
12272 {clear_redundancy_categorization(diff_tree.get());}
12279 /// @param diff_tree the @ref corpus_diff instance which @ref diff are
12282 apply_filters(corpus_diff_sptr diff_tree)
12284 diff_tree->context()->maybe_apply_filters(diff_tree);
12285 propagate_categories(diff_tree);