public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@seketeli.org>
To: Matthias Maennich <maennich@google.com>
Cc: Giuliano Procida <gprocida@google.com>,
	libabigail@sourceware.org, kernel-team@android.com
Subject: Re: [PATCH 0/3] Add an option to give finer-grained control of offset reporting.
Date: Thu, 14 May 2020 10:35:22 +0200	[thread overview]
Message-ID: <86k11ec3sl.fsf@seketeli.org> (raw)
In-Reply-To: <20200513193824.GD62716@google.com> (Matthias Maennich's message of "Wed, 13 May 2020 21:38:24 +0200")

Matthias Maennich <maennich@google.com> a écrit:

[...]

> I think I would like the one line of mention as I suggested. Omitting it
> conditionally introduces more logic and likely we confuse users.

Either way, we'll have to introdroce more logic anyway, so I am not
concerned about that, if, of course that is useful.

I guess what I wanted to say is that the one line mention seems like a
good idea because that example is simple.  If you have more than one
non-contiguous addition/removal/changes of data members in the struct,
then I am not sure the one liner mention is still that "relevant".  Or
maybe in that case we can avoir the one liner mention and emit the
in-extenso message as we have today?  What do you think?

> I also do not see them as redundant, just obvious and therefore a
> short form is enough to transmit this information.

Hmmh, yes, I think you are right.  The offset changes are not redundant
per se.  They just happen to be caused by the change, but they don't
necessary have to be.  Point taken.

[...]


>>Also, would it make sense to emit those qualified data member names when
>>we are analyzying a C++ program?  Or do you think it's more legible to
>>emit always emit non-qualified data member names?
>
> I think this very much applies to C structs as well. In fact, the above
> is a C example.

Yeah, I got that.  I really meant my question.  I'll re-phrase it
differently.  Do you think we should avoid removing the
full-qualification when we are analyzing c++ programs?  Or do do you
think what you are proposing for C should apply for C++ programs
equally?  I would think yes, but I am not sure.

> I think we should use the non-qualified version if we
> are in a nested block where the rest of the qualified name is already
> emitted. In the above example, we are in the block of 'task_struct'
> differences, hence we can strip that part away from
> task_struct::in_ubsan'.

This does make sense to me.

If we agree that we should change this behaviour, then maybe we should
create an enhance request for this.  Shall we?

Thanks,

Cheers,

-- 
		Dodji

  reply	other threads:[~2020-05-14  8:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 16:24 Giuliano Procida
2020-05-04 16:24 ` [PATCH 1/3] abidiff.cc: tidy using directives and declarations Giuliano Procida
2020-05-13 11:27   ` Dodji Seketeli
2020-05-13 15:56     ` Giuliano Procida
2020-05-14  8:22       ` Dodji Seketeli
2020-05-04 16:24 ` [PATCH 2/3] Allow offset changes to be considered harmless Giuliano Procida
2020-05-13 11:46   ` Dodji Seketeli
2020-05-14 13:21     ` Giuliano Procida
2020-05-04 16:24 ` [PATCH 3/3] Add abidiff --offset-changes-are-harmless tests Giuliano Procida
2020-05-13 11:48   ` Dodji Seketeli
2020-05-12 14:51 ` [PATCH 0/3] Add an option to give finer-grained control of offset reporting Matthias Maennich
2020-05-13 12:06   ` Dodji Seketeli
2020-05-13 19:38     ` Matthias Maennich
2020-05-14  8:35       ` Dodji Seketeli [this message]
2020-05-14 12:39         ` Giuliano Procida
2020-05-18 20:16           ` Matthias Maennich
2020-05-20  7:57           ` Dodji Seketeli
2020-05-18 20:09         ` Matthias Maennich

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=86k11ec3sl.fsf@seketeli.org \
    --to=dodji@seketeli.org \
    --cc=gprocida@google.com \
    --cc=kernel-team@android.com \
    --cc=libabigail@sourceware.org \
    --cc=maennich@google.com \
    /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).