Debian Codegraph @

tools/spgen/examples/inherited.cocci

raw
1 // This file is part of Coccinelle, lincensed under the terms of the GPL v2.
2 // See copyright.txt in the Coccinelle source code for more information.
3 // The Coccinelle source code can be obtained at http://coccinelle.lip6.fr
4
5 @r@
6 expression x;
7 @@
8
9 (
10 f(x);
11 |
12 g(1);
13 )
14
15 @@
16 expression r.x;
17 @@
18
19 - h(x);
20 + hh(x);
21
22
23 @@
24 expression r.x;
25 @@
26 - h2(x);
27 + hh22(x);
28
29 @@
30 @@
31
32 - foo(1);
33 + bar(1);