summaryrefslogtreecommitdiffstats
path: root/coccinelle/swap-two.cocci
blob: edf7d32403e2c06b8aae0f36b475d37fba7f1b47 (plain)
1
2
3
4
5
6
7
@@
expression x, y, z;
@@
- z = x;
- x = y;
- y = z;
+ SWAP_TWO(x, y);