{
if (local_only && d->has_local_changes())
{
- std::ostringstream out_buffer;
- out_buffer
- << indent << "type '" << get_pretty_representation(o->get_type())
+ out << indent << "type '" << get_pretty_representation(o->get_type())
<< "' of '" << o->get_qualified_name()
<< "' changed";
if (d->currently_reporting())
{
- out_buffer << " as being reported\n";
- begin_with_and = true;
+ out << " as being reported\n";
}
else if (d->reported_once())
{
- out_buffer << " as reported earlier\n";
- begin_with_and = true;
+ out << " as reported earlier\n";
}
else
{
- out_buffer << ":\n";
- d->report(out_buffer, indent + " ");
- begin_with_and = false;
+ out << ":\n";
+ d->report(out, indent + " ");
}
- out << out_buffer.str();
+ begin_with_and = true;
emitted = true;
}
else
test-abidiff-exit/test-loc-v1.bi \
test-abidiff-exit/test-loc-with-locs-report.txt \
test-abidiff-exit/test-loc-without-locs-report.txt \
+test-abidiff-exit/test-no-stray-comma-report.txt \
+test-abidiff-exit/test-no-stray-comma-v0.o \
+test-abidiff-exit/test-no-stray-comma-v1.o \
\
test-diff-dwarf/test0-v0.cc \
test-diff-dwarf/test0-v0.o \
--- /dev/null
+Leaf changes summary: 1 artifact changed
+Changed leaf types summary: 1 leaf type changed
+Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
+Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable
+
+'struct foo at test-b146198490-v0.cc:1:1' changed:
+ type size changed from 32 to 64 (in bits)
+ there are data member changes:
+ type 'int[1]' of 'foo::bar' changed:
+ type name changed from 'int[1]' to 'int[2]'
+ array type size changed from 32 to 64
+ array type subrange 1 changed length from 1 to 2
+ and size changed from 32 to 64 (in bits) (by +32 bits)
+
type 'unsigned long int' of 'root_domain::max_cpu_capacity' changed:
entity changed from 'unsigned long int' to 'struct max_cpu_capacity' at sched.h:722:1
type size changed from 64 to 192 (in bits)
-, size changed from 64 to 192 (in bits) (by +128 bits)
+ and size changed from 64 to 192 (in bits) (by +128 bits)
'perf_domain* root_domain::pd' offset changed from 14528 to 14656 (in bits) (by +128 bits)
type 'unsigned long int' of 'root_domain::max_cpu_capacity' changed:
entity changed from 'unsigned long int' to 'struct max_cpu_capacity' at sched.h:722:1
type size changed from 64 to 192 (in bits)
-, size changed from 64 to 192 (in bits) (by +128 bits)
+ and size changed from 64 to 192 (in bits) (by +128 bits)
'perf_domain* root_domain::pd' offset changed from 14528 to 14656 (in bits) (by +128 bits)
"data/test-abidiff-exit/test-loc-without-locs-report.txt",
"output/test-abidiff-exit/test-loc-without-locs-report.txt"
},
+ {
+ "data/test-abidiff-exit/test-no-stray-comma-v0.o",
+ "data/test-abidiff-exit/test-no-stray-comma-v1.o",
+ "",
+ "--leaf-changes-only",
+ abigail::tools_utils::ABIDIFF_ABI_CHANGE,
+ "data/test-abidiff-exit/test-no-stray-comma-report.txt",
+ "output/test-abidiff-exit/test-no-stray-comma-report.txt"
+ },
{0, 0, 0 ,0, abigail::tools_utils::ABIDIFF_OK, 0, 0}
};