Re: [Cocci] [PATCH] coccinelle: iterators: Add for_each_child.cocci script

2020-10-12 Thread Julia Lawall
On Thu, 24 Sep 2020, Sumera Priyadarsini wrote: > While iterating over child nodes with the for_each functions, if > control is transferred from the middle of the loop, as in the case > of a break or return or goto, there is no decrement in the > reference counter thus ultimately resulting in a

Re: [Cocci] [PATCH] coccinelle: iterators: Add for_each_child.cocci script

2020-09-24 Thread Julia Lawall
On Thu, 24 Sep 2020, Markus Elfring wrote: > > +@ruletwo depends on patch && !context && !org && !report@ > > How do you think about to combine code from two SmPL rules > by using another SmPL disjunction like the following? What is the goal of doing this? It seems substantially harder to und