If a diff node is in NO_CHANGE_CATEGORY do not report it anymore

* src/abg-comparison.cc (diff::is_filtered_out): Now that we seem
	to be flagging every changes to a class into a category, we do not
	need to dive into reporting a diff not that is categorized as
	NO_CHANGE_CATEGORY anymore.  So let's have the implementation that
	one would expect for this function.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-04-15 12:46:14 +02:00
parent 728f4f2fcc
commit 13af201739

View File

@ -541,8 +541,11 @@ diff_context::show_added_vars() const
/// @return true iff the current diff node should NOT be reported.
bool
diff::is_filtered_out() const
{return (get_category() != NO_CHANGE_CATEGORY
&& !(get_category() & context()->get_allowed_category()));}
{
if (context()->get_allowed_category() == EVERYTHING_CATEGORY)
return false;
return !(get_category() & context()->get_allowed_category());
}
/// Test if this diff tree node should be reported.
///