abg-writer: Simplify 'annotate' propagation
authorMatthias Maennich <maennich@google.com>
Tue, 21 May 2019 04:39:13 +0000 (05:39 +0100)
committerDodji Seketeli <dodji@redhat.com>
Wed, 22 May 2019 12:33:45 +0000 (14:33 +0200)
commit06494ba89af3e85c27b66339c89e3fa76cbc3afc
tree1aef2993d0115d009024dddcb74f2c0045042afd
parent9c84181f99649f56679f8cab36408b1ede44af6b
abg-writer: Simplify 'annotate' propagation

'annotate' is one of many flags that could potentially influence the
way, output is written. Remove the default parameter from
write_context's constructor and let users explicitely set that flag on
the context.

* src/abg-writer.cc (write_context::write_context): remove
'annotate' parameter.
(write_translation_unit, write_corpus, write_corpus_group, dump): Adjust.

Signed-off-by: Matthias Maennich <maennich@google.com>
src/abg-writer.cc