HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Release coccinelle-0.1.8
[bpt/coccinelle.git]
/
tests
/
longconst.cocci
1
@@
2
expression E;
3
long E1;
4
int E2;
5
@@
6
- E1 = E2 << E;
7
+ E1 = f(E2, "int");
8
9
@@
10
expression E;
11
long E1;
12
unsigned int E2;
13
@@
14
- E1 = E2 << E;
15
+ E1 = f(E2, "unsigned");
16
17
@@
18
expression E;
19
long E1;
20
long E2;
21
@@
22
- E1 = E2 << E;
23
+ E1 = f(E2, "long");
24
25
@@
26
expression E;
27
long E1;
28
unsigned long E2;
29
@@
30
- E1 = E2 << E;
31
+ E1 = f(E2, "unsigned long");