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]>
> .cocci
> 
> @r@
> symbol SYSCALL_DEFINE1;
> identifier fn;
> type t;

Is this metavariable unused in the SmPL code?


> .c
> 
> SYSCALL_DEFINE1(foo,int,x) { return 0; }

How can a macro call be matched here?


> Using * was a bad idea.  You can't transform macro expanded code.

Would any more background information become relevant here?

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.