public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@redhat.com>
To: libabigail@sourceware.org
Subject: [PATCH, applied] reader: Make reader::get_scope_for_node handle subranges at array scope.
Date: Wed, 05 Apr 2023 18:07:24 +0200	[thread overview]
Message-ID: <87h6tul3cz.fsf@redhat.com> (raw)

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


                 reply	other threads:[~2023-04-05 16:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6tul3cz.fsf@redhat.com \
    --to=dodji@redhat.com \
    --cc=libabigail@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).