From: Frantisek Sumsal Date: Sun, 4 Oct 2020 10:29:43 +0000 (+0200) Subject: coccinelle: skip strjoin transformation in test_strjoin() X-Git-Tag: v247-rc1~130^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=135a9868a7551fba29a928f7a8dd9761486f9a5b;p=thirdparty%2Fsystemd.git coccinelle: skip strjoin transformation in test_strjoin() --- diff --git a/coccinelle/strjoin.cocci b/coccinelle/strjoin.cocci index 675760e37a4..46f70c4c236 100644 --- a/coccinelle/strjoin.cocci +++ b/coccinelle/strjoin.cocci @@ -1,16 +1,15 @@ @@ -expression list args; -@@ -- strjoin(args, NULL); -+ strjoin(args); -@@ +position p : script:python() { p[0].current_element != "test_strjoin" }; expression t; expression list args; @@ -- t = strjoin(args, NULL); +( +- strjoin@p(args, NULL); ++ strjoin(args); +| +- t = strjoin@p(args, NULL); + t = strjoin(args); -@@ -expression list args; -@@ -- return strjoin(args, NULL); +| +- return strjoin@p(args, NULL); + return strjoin(args); +)