summaryrefslogtreecommitdiff
path: root/coccinelle/flags-set.cocci
blob: 73966b02e5d27861900299f0a5adecd4f1fa0db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@@
/* Disable this transformation for the securebits-util.h, as it makes
 * the expression there confusing. */
position p : script:python() { p[0].file != "src/shared/securebits-util.h" };
expression x, y;
@@
(
- ((x@p) & (y)) == (y)
+ FLAGS_SET(x, y)
|
- (x@p & (y)) == (y)
+ FLAGS_SET(x, y)
|
- ((x@p) & y) == y
+ FLAGS_SET(x, y)
)