cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [cocci] Improving support for return macro variants with SmPL?
@ 2024-03-26 13:26 Markus Elfring
  2024-03-26 14:54 ` Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2024-03-26 13:26 UTC (permalink / raw)
  To: cocci

Hello,

The semantic patch language provides special support for “Linux iterators”.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L471
https://github.com/coccinelle/coccinelle/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L471

Will a need evolve to extend data processing support in similar ways
for macro variants (like “return_ptr(p)”) which indicate return statements?
https://elixir.bootlin.com/linux/v6.8.1/source/include/linux/cleanup.h#L78

Regards,
Markus

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [cocci] Improving support for return macro variants with SmPL?
  2024-03-26 13:26 [cocci] Improving support for return macro variants with SmPL? Markus Elfring
@ 2024-03-26 14:54 ` Julia Lawall
  0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2024-03-26 14:54 UTC (permalink / raw)
  To: Markus Elfring; +Cc: cocci

[-- Attachment #1: Type: text/plain, Size: 665 bytes --]



On Tue, 26 Mar 2024, Markus Elfring wrote:

> Hello,
>
> The semantic patch language provides special support for “Linux iterators”.
> https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L471
> https://github.com/coccinelle/coccinelle/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L471
>
> Will a need evolve to extend data processing support in similar ways
> for macro variants (like “return_ptr(p)”) which indicate return statements?
> https://elixir.bootlin.com/linux/v6.8.1/source/include/linux/cleanup.h#L78

I don't have any plan to do that.

julia

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-26 14:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26 13:26 [cocci] Improving support for return macro variants with SmPL? Markus Elfring
2024-03-26 14:54 ` Julia Lawall

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 NNTP newsgroup(s).