]>
Commit | Line | Data |
---|---|---|
64b92d63 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
a8ea93a5 | 2 | @@ |
19615a65 FS |
3 | /* Avoid running this transformation on the empty_to_null macro itself. |
4 | * See the note in strempty.cocci to understand the weird magic below. | |
5 | */ | |
6 | position p : script:python() { | |
7 | not (p[0].file == "src/basic/string-util.h" and p[0].current_element == "something_else") | |
8 | }; | |
a8ea93a5 LP |
9 | expression s; |
10 | @@ | |
60d9959d FS |
11 | |
12 | - isempty@p(s) ? NULL : s | |
a8ea93a5 | 13 | + empty_to_null(s) |