Skip to contentSkip to conversation

Improving support for return macro variants with SmPL?

cocci Markus Elfring 2 participants 2 messages Mar 26, 2024

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Markus Elfring

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