Re: [cocci] Matching a specific declarer?

Tobias Deiminger <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
Am 01.12.2025 17:00 schrieb Markus Elfring:
> [...]
>> 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?

Sorry, not sure I understand the question. Is there anything I should 
do, or should avoid to do, or tell about?

If I manage to compile meaningful results until next week, I maybe add 
some words about the code search approach to my LPC talk:
https://lpc.events/event/19/contributions/2198/

>> 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?

You mean better Coccinelle documentation? I think it's ok. This list is 
very responsive and helpful, that more than compensates for gaps in 
documentation, if any. Also my use case is in the niche of a niche, so 
really not demanding anything.

>> 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.

Which revisions of which tool do you mean?

Tobias
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.