On Mon, 18 May 2020, Markus Elfring wrote:

> > @@
> > identifier mac,f;
> > @@
> >
> > *#define mac(...) <+... f(...) ...+>
>
> Does such an analysis approach restrict the source code search really on
> complete definitions for function-like macros?

Coccinelle knows where the macro ends.  A macro has to be on one line,
perhaps extended with a \

julia


>
>
> Will it become interesting for clarify corresponding special cases?
>
> * How are empty macros treated by the Coccinelle software?
>
> * Is there a connection managed between a macro declaration
>   and subsequent source code?
>
> Regards,
> Markus
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to