[applied] writer: Don't forget that a naming typedef is referenced
Commit Message
Hello,
While looking into something else, I noticed that when emitting the
'naming-typedef' property of class, the typedef wasn't categorized as
a referenced type. So sometimes the writer could forget to emit the
naming typedef itself later. Fixed thus.
* src/abg-writer.cc (write_naming_typedef): Notice that the naming
typedef is referenced.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
src/abg-writer.cc | 1 +
1 file changed, 1 insertion(+)
@@ -1887,6 +1887,7 @@ write_naming_typedef(const decl_base_sptr& decl, write_context& ctxt)
{
string id = ctxt.get_id_for_type(typedef_type);
o << " naming-typedef-id='" << id << "'";
+ ctxt.record_type_as_referenced(typedef_type);
}
}