From: Stefan Kangas Date: Sun, 7 Jan 2024 21:07:45 +0000 (+0100) Subject: Support string literals in build_string.cocci X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c21995ff008d37e768a33412cad5fc9f5c3c2dbb;p=emacs.git Support string literals in build_string.cocci * admin/coccinelle/build_string.cocci: Support string literals. --- diff --git a/admin/coccinelle/build_string.cocci b/admin/coccinelle/build_string.cocci index d47727018dd..9421a140658 100644 --- a/admin/coccinelle/build_string.cocci +++ b/admin/coccinelle/build_string.cocci @@ -4,3 +4,9 @@ identifier I; @@ - make_string (I, strlen (I)) + build_string (I) + +@@ +constant C; +@@ +- make_string (C, strlen (C)) ++ build_string (C)