permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / ioctl_multiple_rules.cocci
CommitLineData
34e49164
C
1// can constraint to specific function by using multiple rules
2
3@ rule1 @
4struct file_operations x;
5identifier ioctl_fn;
6@@
7
8x.ioctl = ioctl_fn;
9
10
11@@
12identifier rule1.ioctl_fn;
13@@
14
15 ioctl_fn(...)
16{
17
18- foo(1);
19+ foo(2);
20}
21