1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-04 22:21:55 +03:00
systemd/coccinelle/isempty.cocci

61 lines
659 B
Plaintext
Raw Normal View History

@@
expression s;
@@
- strv_length(s) == 0
+ strv_isempty(s)
@@
expression s;
@@
- strv_length(s) <= 0
+ strv_isempty(s)
@@
expression s;
@@
- strv_length(s) > 0
+ !strv_isempty(s)
@@
expression s;
@@
- strv_length(s) != 0
+ !strv_isempty(s)
@@
expression s;
@@
- strlen(s) == 0
+ isempty(s)
@@
expression s;
@@
- strlen(s) <= 0
+ isempty(s)
@@
expression s;
@@
- strlen(s) > 0
+ !isempty(s)
@@
expression s;
@@
- strlen(s) != 0
+ !isempty(s)
@@
expression s;
@@
- strlen_ptr(s) == 0
+ isempty(s)
@@
expression s;
@@
- strlen_ptr(s) <= 0
+ isempty(s)
@@
expression s;
@@
- strlen_ptr(s) > 0
+ !isempty(s)
@@
expression s;
@@
- strlen_ptr(s) != 0
+ !isempty(s)