public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, applied] reader: Make reader::get_scope_for_node handle subranges at array scope.
@ 2023-04-05 16:07 Dodji Seketeli
  0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2023-04-05 16:07 UTC (permalink / raw)
  To: libabigail

Hello,

Now that subranges can be standalone types, we need to teach
reader::get_scope_for_node about the fact that subranges can be at
array scope too.

	* src/abg-reader.cc (reader::get_scope_for_node): A subrange
	at array scope is meant to be in the scope of the array.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 src/abg-reader.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/abg-reader.cc b/src/abg-reader.cc
index 4c2ff529..e1d13296 100644
--- a/src/abg-reader.cc
+++ b/src/abg-reader.cc
@@ -1490,7 +1490,8 @@ reader::get_scope_for_node(xmlNodePtr node,
       && (xmlStrEqual(parent->name, BAD_CAST("data-member"))
 	  || xmlStrEqual(parent->name, BAD_CAST("member-type"))
 	  || xmlStrEqual(parent->name, BAD_CAST("member-function"))
-	  || xmlStrEqual(parent->name, BAD_CAST("member-template"))))
+	  || xmlStrEqual(parent->name, BAD_CAST("member-template"))
+	  || xmlStrEqual(parent->name, BAD_CAST("array-type-def"))))
     {
       read_access(parent, access);
       parent = parent->parent;
-- 
2.39.2


-- 
		Dodji


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

only message in thread, other threads:[~2023-04-05 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 16:07 [PATCH, applied] reader: Make reader::get_scope_for_node handle subranges at array scope 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).