Blame view

RIOT/dist/tools/coccinelle/force/continue.cocci 297 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  // 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:
  
  @@
  @@
  
  for (...;...;...) {
     ...
     if (...) {
       ...
  -   continue;
     }
  }