On Sat, 23 Jul 2016, SF Markus Elfring wrote:

> > The <+... ...+> starts the matching process at the beginning of the
> > function and ends it at the end of the function, instead of just working
> > on each if one by one.  Thus <+... ...+> should be much less efficient.
> > Also with <+... ...+> if you put a position variable on eg the if, you
> > will get a single position array with all the matches, whereas without it
> > you get one position array per if.
>
> How are the chances that such kind of information will also find its way
> into the section "Dot variants" of the manual?
> https://github.com/coccinelle/coccinelle/blob/3b52bd3c6960dc996186e1c58c96355db288825c/docs/manual/cocci_syntax.tex#L632

The cited text already discusses the case where <+... matches back to the
beginning of the function.  So perhaps with a little imagination one could
infer on one's own that at ...+> at the end of a pattern would match to
the end of the function...

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to