summaryrefslogtreecommitdiffstats
path: root/devel/coccinelle/rename-fn.cocci
blob: 5bce9b736c206990eed982f7b7a6c21a723deafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright 2021 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.
 */

/*
 * Rename a function or macro. This is here as a template; replace "old" and
 * "new" below with the old and new names, run in the devel directory:
 *
 * make COCCI_FILES=coccinelle/rename-fn.cocci cocci-inplace
 *
 * then revert the file before committing.
 */

virtual internal

@@ expression E; @@
- old(E)
+ new(E)