[Cocci] please help me with a "repetition"
julia.lawall at lip6.fr
Sun Apr 29 13:32:18 CEST 2018
On Sun, 29 Apr 2018, Robert Larice wrote:
> probably a stupid question,
> I'm failing to match something like this
> + int newvar;
> i++; i++; ... any sequence of only "i++";
> + buckbear(42);
> I don't succeed to express this "maximum length repetition"
> in the mids of those two insertions.
It's not completely straightforward. You could try:
position p != r1.p;
+ int newvar;
position p != r2.p;
> Best Regards,
> Cocci mailing list
> Cocci at systeme.lip6.fr
More information about the Cocci