summaryrefslogtreecommitdiffstats
path: root/coccinelle/flags-set.cocci
blob: 1a70717e76cb855ba75db28be584496c53e6f627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@@
expression x, y;
@@
- ((x) & (y)) == (y)
+ FLAGS_SET(x, y)
@@
expression x, y;
@@
- (x & (y)) == (y)
+ FLAGS_SET(x, y)
@@
expression x, y;
@@
- ((x) & y) == y
+ FLAGS_SET(x, y)