Coccinelle release 1.0.0-rc1
[bpt/coccinelle.git] / tests / tup.cocci
CommitLineData
34e49164
C
1@ rule1 @
2identifier I;
3identifier f;
4@@
5
6struct block_device_operations I = {
7 .ioctl = f,
8};
9
10@@
11identifier rule1.f;
12expression A, B, C;
13identifier inodename, filename, cmd, arg;
14@@
15
16f(struct inode *inodename, struct file *filename, unsigned int cmd,
17 unsigned long arg) {
18 <...
19- cdrom_ioctl(A, inodename, cmd, arg)
20+ xxx()
21 ...>
22}