if (context()->get_allowed_category() == EVERYTHING_CATEGORY)
return false;
+ // If the diff node is only in the NOT_REDUNDANT_CATEGORY, that
+ // means it represents a change that is not yet categorized and that
+ // the diff not is not redundant. We definitely want to see that
+ // diff node be reported.
+ if (get_category() == NOT_REDUNDANT_CATEGORY)
+ return false;
+
// We don't want to display redundant function or variable diff
// nodes.
if ((dynamic_cast<const function_decl_diff*>(this)
data/test-diff-filter/test17-v1.o \
data/test-diff-filter/test17-0-report.txt \
data/test-diff-filter/test17-1-report.txt \
+data/test-diff-filter/test18-v0.cc \
+data/test-diff-filter/test18-v1.cc \
+data/test-diff-filter/test18-v0.o \
+data/test-diff-filter/test18-v1.o \
+data/test-diff-filter/test18-report.txt \
\
data/test-lookup-syms/test0.cc \
data/test-lookup-syms/test0.o \
--- /dev/null
+Functions changes summary: 0 Removed, 1 Changed, 0 Added function
+Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
+
+1 function with some indirect sub-type change:
+
+ [C]'function void foo(S&)' has some indirect sub-type changes:
+ parameter 0 of type 'S&' has sub-type changes:
+ in referenced type 'struct S':
+ 1 data member change:
+ type of 'int S::m0' changed:
+ name changed from 'int' to 'unsigned int'
+
+
--- /dev/null
+struct S
+{
+ int m0;
+ char m1;
+};
+
+void
+foo(S&)
+{}
--- /dev/null
+struct S
+{
+ unsigned m0;
+ char m1;
+};
+
+void
+foo(S&)
+{}
"data/test-diff-filter/test17-1-report.txt",
"output/test-diff-filter/test17-1-report.txt",
},
+ {
+ "data/test-diff-filter/test18-v0.o",
+ "data/test-diff-filter/test18-v1.o",
+ "",
+ "data/test-diff-filter/test18-report.txt",
+ "output/test-diff-filter/test18-report.txt",
+ },
// This should be the last entry
{NULL, NULL, NULL, NULL, NULL}
};