Re: [cocci] Improving expression list selections with SmPL ellipses?

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

On Sat, 1 Nov 2025, Markus Elfring wrote:

> Hello,
>
> Would you find the following SmPL script variant reasonable?
>
> @display@
> @@
> *my_action("Hello!", ..., ...);

I have no idea what you think this should mean.  How is it different than

my_action("Hello!", ...);

julia

>
>
> Unfortunately, I was disturbed by the following information.
>
> Questionable test result (according to the software combination “Coccinelle 1.3.0”):
> Markus_Elfring@Sonne:…/Projekte/Coccinelle/Probe> /usr/bin/spatch --parse-cocci parse_test_for_ellipsis_as_last_parameter.cocci
> …
> minus: parse error:
>   File "parse_test_for_ellipsis_as_last_parameter.cocci", line 3, column 26, charpos = 39
>   around = '...',
>   whole content = *my_action("Hello!", ..., ...);
>
>
> Under which circumstances will such data processing work also without using
> extra metavariables (instead of SmPL ellipses)?
>
> 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.