summaryrefslogtreecommitdiffstats
path: root/devel/coccinelle/rename-var.cocci
blob: 65bba80649e3f53c6e0738b152e174f1bbda2d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * 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 variable. This is here as a template; replace "old" and
 * "new" below with the old and new names. Here is an example:
 *
 * @@ @@
 * - xml_private_flags
 * + pcmk__xml_flags
 *
 * Run in the devel directory:
 *
 * make COCCI_FILES=coccinelle/rename-var.cocci cocci-inplace
 *
 * then revert the file before committing.
 */

virtual internal

@@ @@
- old
+ new