Re: [cocci] Matching a specific declarer?

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
> Could you confirm, and maybe suggest a workaround?

Julia has pointed another distinction out a moment ago.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/4c9d00ae071800cb447efaffd753f3bb2be28800/docs/manual/cocci_syntax.tex#L473-478


> I used the coccinellery example as reproducer because it's public,

Thanks for another look at this information source.


> but actually stumbled upon the issue in a simpler case: I searched for all occurrences of DEVICE_ATTR_RO(attr) in the Linux kernel,

Will it become more interesting to clarify your own source code search approaches?


> but actually found every place where *any* macro was used to declare something.

Would you be looking for any better documentation also in this application area?


> PS: I'm using spatch 1.3 from Debian trixie.

It might become also interesting with which delay subsequent software tool revisions
will be usable.

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.