mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
ccd52940d0
Some transformations generate results we don't want to keep, so let's disable such transformations for specific files. Also, disable const-strlen.cocci everywhere, as the STRLEN macro has a pretty limited scope, so the transformation generates false positives in most cases.
17 lines
334 B
Plaintext
17 lines
334 B
Plaintext
@@
|
|
/* 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)
|
|
)
|