mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00: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.
14 lines
107 B
Text
14 lines
107 B
Text
@@
|
|
constant s;
|
|
@@
|
|
(
|
|
#define STRLEN
|
|
&
|
|
- sizeof(s)-1
|
|
+ STRLEN(s)
|
|
)
|
|
@@
|
|
constant s;
|
|
@@
|
|
- strlen(s)
|
|
+ STRLEN(s)
|