Re: [cocci] Searching for duplicate exception handling code with SmPL?

Julia Lawall <[email protected]> Sat, 13 Jun 2026 19:06:54 +0200 (CEST)
Newsgroups fr.inria.cocci
Message-ID <[email protected]>

On Sat, 13 Jun 2026, Markus Elfring wrote:

> >> Can you benefit any more from a data representation like the following?
> >
> > No.
>
> I hope that such a view can be adjusted.
>
>
> >      I have no idea what output you expect,
>
> Can you get the impression that I occasionally prefer to work with
> tabular data output?
>
>
> >                                             so I don't know what the
> > problem is.
>
> I guess that several technical difficulties can trigger further collateral evolution.
> I am looking for corresponding solutions.
>
>
> > Could you please make something that doesn't involve a database?
>
> Which programming interfaces do support counting and grouping of data items
> in convenient and efficient ways?
>
>
> > Or just explain what you expected as the output and how that relates to
> > the source code.
>
> I would like to detect duplicate statements somehow.
> How would you prefer to point repeated source code elements out accordingly?
>
> Is there a field or column like incidence desirable?

Do you agree that my semantic patch finds what you expect to find?

If you agree on that, it would seem that the problem is in your python
code.

julia