systemd/coccinelle/strjoin.cocci

17 lines
320 B
Plaintext
Raw Normal View History

2023-04-12 17:00:04 +08:00
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2022-05-14 02:56:24 +08:00
@@
2023-04-12 17:00:04 +08:00
position p : script:python() { p[0].current_element != "test_strjoin" };
2022-05-14 02:56:24 +08:00
expression t;
expression list args;
@@
2023-04-12 17:00:04 +08:00
(
- strjoin@p(args, NULL);
+ strjoin(args);
|
- t = strjoin@p(args, NULL);
2022-05-14 02:56:24 +08:00
+ t = strjoin(args);
2023-04-12 17:00:04 +08:00
|
- return strjoin@p(args, NULL);
2022-05-14 02:56:24 +08:00
+ return strjoin(args);
2023-04-12 17:00:04 +08:00
)