summaryrefslogtreecommitdiffstats
path: root/coccinelle/cond-omit-middle.cocci
blob: f1587b8db30dff325c8f694ac271354437ac235e (plain)
1
2
3
4
5
6
7
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* See: https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html#Conditionals */
@@
expression e, x;
@@
- e ? e : x
+ e ?: x