permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / first.cocci
CommitLineData
7f004419
C
1@initialize:python@
2
3first = 0
4
5@first_fct@
6type T;
7identifier f;
8position p;
9@@
10
11T f@p (...) {...}
12
13@script:python@
14p << first_fct.p;
15@@
16
8f657093 17if p[0].line > first and first == 0:
7f004419
C
18 first = p[0].line
19else:
8f657093 20 cocci.include_match(False)
7f004419
C
21
22@@
23type T;
24identifier f;
25position first_fct.p;
26@@
27
28+#include <foo.h>
29
30T f@p (...) {...}