git/contrib/coccinelle/preincr.cocci

6 lines
50 B
Plaintext

@ preincrement @
identifier i;
@@
- ++i > 1
+ i++