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

coccinelle: use exists to improve efficiency

This just needs to find any reassignment of the loop iterator, and doesn't
need such a thing on all execution paths, so use exists on the first rule.
Signed-off-by: NJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 bace6480
...@@ -15,7 +15,7 @@ virtual context ...@@ -15,7 +15,7 @@ virtual context
virtual org virtual org
virtual report virtual report
@r@ @r exists@
iterator name list_for_each_entry; iterator name list_for_each_entry;
expression x,E; expression x,E;
position p1,p2; position p1,p2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册