summaryrefslogtreecommitdiff
path: root/coccinelle/swap-two.cocci
blob: d80c4e0402f44e268d358b72b3212a23c372e063 (plain)
1
2
3
4
5
6
7
8
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression x, y, z;
@@
- z = x;
- x = y;
- y = z;
+ SWAP_TWO(x, y);