1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00
systemd-stable/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)