scripts: coccinelle: check for redeclaration
[linux-2.6-block.git] / scripts / coccinelle / iterators / use_after_iter.cocci
index ce8cc9c006e56dd46c5c337553755e11a40b5717..66a1140474c8d1eda54c5e37f3392bc302b7a64a 100644 (file)
@@ -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