Re: [cocci] Checking SmPL support for two special expressions

Julia Lawall <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>

On Wed, 12 Nov 2025, Markus Elfring wrote:

> >>> Coccinelle doesn't know these types.  You have to declare them with typedef.
> >>
> >> Are type definitions really required for the handling of casts?
> >
> > Yes.  There is a potential parsing ambiguity otherwise, I believe.
>
> How interesting is it that I can recognise casts also without extra type definitions?

Not interesting.  Sometimes it can infer them.

julia


>
> Regards,
> Markus
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.