]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - coccinelle/flags-set.cocci
update TODO
[thirdparty/systemd.git] / coccinelle / flags-set.cocci
index 1a70717e76cb855ba75db28be584496c53e6f627..73966b02e5d27861900299f0a5adecd4f1fa0db2 100644 (file)
@@ -1,15 +1,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) & (y)) == (y)
+(
+- ((x@p) & (y)) == (y)
 + FLAGS_SET(x, y)
-@@
-expression x, y;
-@@
-- (x & (y)) == (y)
+|
+- (x@p & (y)) == (y)
 + FLAGS_SET(x, y)
-@@
-expression x, y;
-@@
-- ((x) & y) == y
+|
+- ((x@p) & y) == y
 + FLAGS_SET(x, y)
+)