summaryrefslogtreecommitdiff
path: root/coccinelle/while-true.cocci
blob: 3ea70bc0c61af2f431b071a952905cfb0ab748c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
statement s;
@@
- while (true)
+ for (;;)
s
@@
statement s;
@@
- while (1)
+ for (;;)
s