systemd/coccinelle/swap-two.cocci

9 lines
120 B
Plaintext

/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
expression x, y, z;
@@
- z = x;
- x = y;
- y = z;
+ SWAP_TWO(x, y);