On Wed, 29 Oct 2014, SF Markus Elfring wrote:
> >> @Add_before_implementation@
> >> identifier func;
> >> type t;
> >> @@
> >> (
> >> #define func BAR(func)
> >> t func(...)
> >> { ... }
> >> |
> >> +#define func BAR(func)
> >> t func(...)
> >> { ... }
> >> )
> >
> > This doesn't work.
>
> Interesting ...
>
>
> > There is no kind of disjunction that includes a function definition in a
> > branch.
>
> Was I too optimistic that my suggestion with the specification of SmPL
> alternatives should also work?
You can see with spatch --parse-cocci what works and what does not.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci