summaryrefslogtreecommitdiffstats
path: root/devel/coccinelle/use-func.cocci
blob: bfca91985eda4b79ee8b7f2ff89dd0a144d2b682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2020 the Pacemaker project contributors
 *
 * The version control history for this file may have further details.
 *
 * This source code is licensed under the GNU General Public License version 2
 * or later (GPLv2+) WITHOUT ANY WARRANTY.
 */

/*
 * Always use __func__ (which is in the C99 standard) instead of __FUNCTION__
 * (which is an older GNU C extension)
 */

virtual internal

@ use_func @
@@
(
- __FUNCTION__
+ __func__
)