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