]> git.eshelyaron.com Git - emacs.git/commitdiff
Support string literals in build_string.cocci
authorStefan Kangas <stefankangas@gmail.com>
Sun, 7 Jan 2024 21:07:45 +0000 (22:07 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 8 Jan 2024 05:15:06 +0000 (06:15 +0100)
* admin/coccinelle/build_string.cocci: Support string literals.

admin/coccinelle/build_string.cocci

index d47727018ddfc69cd4e22969c3fdbc40a21963db..9421a1406588e56f0fe5a6e7ddc72f02913075a4 100644 (file)
@@ -4,3 +4,9 @@ identifier I;
 @@
 - make_string (I, strlen (I))
 + build_string (I)
+
+@@
+constant C;
+@@
+- make_string (C, strlen (C))
++ build_string (C)