Commit | Line | Data |
---|---|---|
34e49164 C |
1 | @r@ |
2 | position p1, p2; | |
3 | identifier f; | |
4 | expression E; | |
5 | @@ | |
6 | ||
7 | f@p1(E@p2) | |
8 | ||
9 | @ script:python @ | |
10 | p1 << r.p1; | |
11 | p2 << r.p2; | |
12 | f << r.f; | |
13 | @@ | |
14 | ||
15 | c1 = cocci.combine(f,p1) | |
16 | c2 = cocci.combine(f,p2) | |
17 | print "1. function in column %s" % c1.location.column | |
18 | print "1. argument in column %s" % c2.location.column | |
19 | c1 = cocci.combine(f,p1) | |
20 | print "2. function in column %s" % c1.location.column | |
21 | c2 = cocci.combine(f,p2) | |
22 | print "2. argument in column %s" % c2.location.column | |
23 | print "3. function in column %s" % ','.join([p.column for p in p1]) | |
24 | print "3. argument in column %s" % ','.join([p.column for p in p2]) | |
25 | print "4. function in column %s" % p1[0].column | |
26 | print "4. argument in column %s" % p2[0].column |