Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment