Release coccinelle-0.1.1
[bpt/coccinelle.git] / tests / pb_params_iso.cocci
CommitLineData
34e49164
C
1// soluce ?
2// - add isomorphism:
3// func(..., P, ...) => func(P) , => func(P,...), => func(...,P) ?
4// but propagate well the modifiers ?
5// but then how specify that we really want match function
6// that have parameters before ? use a P metavariable.
7// - allow func (... int i ...) in parsing_cocci/
8
9@@
10identifier func;
11@@
12
13// pad: this one does not work because the last comma is tagged
14// and so I force it to be present.
15// func(...,
16// - int i,
17// + int i, char j,
18// ...) {
19// ...
20// }
21
22 func(...,
23- int i
24+ int i, char j
25 ,...) {
26 ...
27 }
28
29
30
31