Re: [cocci] Can we match a known macro by macro name instead of expanded function name?

Markus Elfring <[email protected]>
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
>> How else to look for functions with attributes then?
> The return type for the function is required in this case:
> 
> @r@
> attribute a;
> identifier fn;
> types t;
> @@
> 
> * t a fn(...) { ... }

Would a similar source code search approach become interesting
for further clarifications?

Exclude macro calls from searches for function implementations
2024-10-28
https://github.com/coccinelle/coccinelle/issues/381

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.