public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] writer: Don't forget that a naming typedef is referenced
@ 2021-10-18  8:58 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2021-10-18  8:58 UTC (permalink / raw)
  To: libabigail

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(+)

diff --git a/src/abg-writer.cc b/src/abg-writer.cc
index 6f2fee16..693f99c6 100644
--- a/src/abg-writer.cc
+++ b/src/abg-writer.cc
@@ -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);
     }
 }
 
-- 
2.32.0


-- 
		Dodji


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-18  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18  8:58 [PATCH, applied] writer: Don't forget that a naming typedef is referenced Dodji Seketeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).