summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/shorthand_operator.cocci
blob: f7019d4040590d79ffd3e16656fcae05be331066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
@@
identifier data;
constant x;
@@

(
- data = data + x
+ data += x
|
- data = data - x
+ data -= x
)