Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
V
Vsevolod Stakhov
Merge branch 'master' into gsoc 12 years ago 8d30157 History
HardenedBSD-pkg tests cocci continue.cocci
// Continue at the end of a for loop has no purpose
//
// Confidence: Moderate
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, INRIA, DIKU.  GPLv2.
// URL: http://coccinelle.lip6.fr/rules/continue.html
// Options:

@@
position p;
@@

for (...;...;...) {
   ...
   if (...) {
     ...
-   continue;
   }
}

@@
position p;
@@

while (...) {
   ...
   if (...) {
     ...
-   continue;
   }
}