writer: completely skip over empty corpora
authorMatthias Maennich <maennich@google.com>
Mon, 13 Jan 2020 14:44:51 +0000 (14:44 +0000)
committerMatthias Maennich <maennich@google.com>
Mon, 20 Jan 2020 14:58:22 +0000 (14:58 +0000)
commit68910c530148591d55a5834933fe95b4136e75c5
treec55fb3f3490ada65b9ad9991130b9737c4a9e2b1
parent750b652b695d38efd83f8fbc1576d31d6e327b9d
writer: completely skip over empty corpora

A corpus that has no symbols contributing to the ABI surface (e.g.
because of an exhaustive suppression), will not contribute in a later
comparison via abidiff and friends. Hence, there is no need for such
entries to appear in the ABI xml representation. This patch completely
suppresses empty corpora.

* src/abg-writer.cc (write_corpus): completely skip empty
corpora rather than creating an empty entry for them.

Reviewed-by: Dodji Seketeli <dodji@seketeli.org>
Signed-off-by: Matthias Maennich <maennich@google.com>
src/abg-writer.cc