HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release 1.0.0-rc1
[bpt/coccinelle.git]
/
tests
/
size_t.cocci
1
@ rule1 @
2
identifier f, x;
3
@@
4
5
f(...,size_t x,...) { ... }
6
7
@@
8
expression E;
9
type T;
10
size_t E1;
11
identifier rule1.f;
12
@@
13
14
(
15
f(...,sizeof(E),...)
16
|
17
f(...,sizeof(T),...)
18
|
19
f(...,E1,...)
20
|
21
* f(...)
22
)
23
24
@ rule2 @
25
identifier f, x;
26
type T;
27
@@
28
29
T f(...,size_t x,...);
30
31
@@
32
expression E;
33
type T;
34
size_t E1;
35
identifier rule2.f;
36
@@
37
38
(
39
f(...,sizeof(E),...)
40
|
41
f(...,sizeof(T),...)
42
|
43
f(...,E1,...)
44
|
45
* f(...)
46
)