]>
Commit | Line | Data |
---|---|---|
1 | @@ | |
2 | /* Disable this transformation for the test-string-util.c */ | |
3 | position p : script:python() { p[0].file != "src/test/test-string-util.c" }; | |
4 | expression s; | |
5 | @@ | |
6 | ( | |
7 | - strv_length@p(s) == 0 | |
8 | + strv_isempty(s) | |
9 | | | |
10 | - strv_length@p(s) <= 0 | |
11 | + strv_isempty(s) | |
12 | | | |
13 | - strv_length@p(s) > 0 | |
14 | + !strv_isempty(s) | |
15 | | | |
16 | - strv_length@p(s) != 0 | |
17 | + !strv_isempty(s) | |
18 | | | |
19 | - strlen@p(s) == 0 | |
20 | + isempty(s) | |
21 | | | |
22 | - strlen@p(s) <= 0 | |
23 | + isempty(s) | |
24 | | | |
25 | - strlen@p(s) > 0 | |
26 | + !isempty(s) | |
27 | | | |
28 | - strlen@p(s) != 0 | |
29 | + !isempty(s) | |
30 | | | |
31 | - strlen_ptr@p(s) == 0 | |
32 | + isempty(s) | |
33 | | | |
34 | - strlen_ptr@p(s) <= 0 | |
35 | + isempty(s) | |
36 | | | |
37 | - strlen_ptr@p(s) > 0 | |
38 | + !isempty(s) | |
39 | | | |
40 | - strlen_ptr@p(s) != 0 | |
41 | + !isempty(s) | |
42 | ) |