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
/
mf.cocci
1
@ rule1 @
2
identifier fn1, fn2;
3
expression A, B;
4
@@
5
6
fn1(...) {
7
foo(A);
8
}
9
10
fn2(...) {
11
fn1();
12
- bar(B);
13
+ xxx(A);
14
}
15
16
@ rule2 extends rule1 @
17
@@
18
19
fn1(...) {
20
- foo(A);
21
}