scripts: coccinelle: check for redeclaration
Avoid reporting on the use of an iterator index variable when the variable is redeclared. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
a5003571e6
commit
dc7884f34a
|
@ -35,6 +35,7 @@ iterator name hlist_for_each_entry_from;
|
||||||
iterator name hlist_for_each_entry_safe;
|
iterator name hlist_for_each_entry_safe;
|
||||||
statement S;
|
statement S;
|
||||||
position p1,p2;
|
position p1,p2;
|
||||||
|
type T;
|
||||||
@@
|
@@
|
||||||
|
|
||||||
(
|
(
|
||||||
|
@ -125,6 +126,8 @@ sizeof(<+...c...+>)
|
||||||
|
|
|
|
||||||
&c->member
|
&c->member
|
||||||
|
|
|
|
||||||
|
T c;
|
||||||
|
|
|
||||||
c = E
|
c = E
|
||||||
|
|
|
|
||||||
*c@p2
|
*c@p2
|
||||||
|
|
Loading…
Reference in New Issue