提交 dc7884f3 编写于 作者: J Julia Lawall 提交者: Masahiro Yamada

scripts: coccinelle: check for redeclaration

Avoid reporting on the use of an iterator index variable when
the variable is redeclared.
Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 a5003571
...@@ -35,6 +35,7 @@ iterator name hlist_for_each_entry_from; ...@@ -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...+>) ...@@ -125,6 +126,8 @@ sizeof(<+...c...+>)
| |
&c->member &c->member
| |
T c;
|
c = E c = E
| |
*c@p2 *c@p2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册