Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc7884f3 authored by Julia Lawall's avatar Julia Lawall Committed by Masahiro Yamada
Browse files

scripts: coccinelle: check for redeclaration



Avoid reporting on the use of an iterator index variable when
the variable is redeclared.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent a5003571
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ iterator name hlist_for_each_entry_from;
iterator name hlist_for_each_entry_safe;
statement S;
position p1,p2;
type T;
@@

(
@@ -125,6 +126,8 @@ sizeof(<+...c...+>)
|
 &c->member
|
T c;
|
c = E
|
*c@p2