projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a500357
)
scripts: coccinelle: check for redeclaration
author
Julia Lawall
<
[email protected]
>
Fri, 28 Dec 2018 14:49:01 +0000
(15:49 +0100)
committer
Masahiro Yamada
<
[email protected]
>
Sun, 6 Jan 2019 00:46:51 +0000
(09:46 +0900)
Avoid reporting on the use of an iterator index variable when
the variable is redeclared.
Signed-off-by: Julia Lawall <
[email protected]
>
Signed-off-by: Masahiro Yamada <
[email protected]
>
scripts/coccinelle/iterators/use_after_iter.cocci
patch
|
blob
|
history
diff --git
a/scripts/coccinelle/iterators/use_after_iter.cocci
b/scripts/coccinelle/iterators/use_after_iter.cocci
index ce8cc9c006e56dd46c5c337553755e11a40b5717..66a1140474c8d1eda54c5e37f3392bc302b7a64a 100644
(file)
--- a/
scripts/coccinelle/iterators/use_after_iter.cocci
+++ b/
scripts/coccinelle/iterators/use_after_iter.cocci
@@
-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