HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.1.1
[bpt/coccinelle.git]
/
tests
/
multi_func1.cocci
1
@@
2
identifier fn1, fn2, fn3;
3
expression A;
4
@@
5
6
fn1(...) {
7
- foo(A);
8
//+ bidon(A, fn1);
9
10
}
11
12
fn2(...) {
13
- bar(A);
14
//+ bidon(A, fn1, fn2);
15
}
16
17
fn3(...) {
18
//+ bidon(A, fn1, fn2);
19
fn1(...);
20
fn2(...);
21
// bug need: ... (partial match didn't help that much)
22
...
23
}
24
25
//@@
26
//@@
27
//- bidon(...);
28
29
// @@
30
// @@
31
// (
32
// - fn1(A,1)
33
// |
34
// - fn2(A,1)
35
// )
36
37
38
39
40
// @@
41
// identifier fn1;
42
// expression A;
43
// @@
44
// fn1(...) {
45
// foo(A);
46
// }
47
//
48
// @@
49
// identifier fn2;
50
// @@
51
//
52
// fn2(...) {
53
// bar(A);
54
// }
55
//
56
//
57
// @@
58
// identifier fn3;
59
// //identifier fn1, fn2;
60
// @@
61
//
62
// fn3(...) {
63
// fn1(...);
64
// fn2(...);
65
// ...
66
// }
67
//
68
// @@
69
// //expression A;
70
// @@
71
// fn1(...) {
72
// - foo(A);
73
// }
74
//
75
// @@
76
// @@
77
//
78
// fn2(...) {
79
// - bar(A);
80
// }
81