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:
Julia Lawall 2018-12-28 15:49:01 +01:00 committed by Masahiro Yamada
parent a5003571e6
commit dc7884f34a
1 changed files with 3 additions and 0 deletions

View File

@ -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