HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release-1.0.0-rc11
[bpt/coccinelle.git]
/
tests
/
metaline.cocci
1
@r@
2
expression E;
3
statement S;
4
@@
5
6
f(3 +@E@S 4);
7
8
@@
9
expression r.E;
10
@@
11
12
- g(E)
13
+ h(E)
14
15
@@
16
expression x;
17
statement r.S;
18
@@
19
20
- if
21
+ while
22
(x) S
23
24
@s@
25
expression E;
26
position p;
27
@@
28
29
-m(3 +@E@p 3);
30
31
@@
32
expression s.E;
33
@@
34
35
- g(E)
36
+ q(E)
37
38
@a@
39
declaration d;
40
@@
41
42
-int x@d;
43
44
@@
45
declaration a.d;
46
@@
47
48
int y;
49
+d