From c21995ff008d37e768a33412cad5fc9f5c3c2dbb Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 7 Jan 2024 22:07:45 +0100 Subject: [PATCH] Support string literals in build_string.cocci * admin/coccinelle/build_string.cocci: Support string literals. --- admin/coccinelle/build_string.cocci | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2