Re: [PATCH v6 18/19] treewide: s/\<strends\>/strsuffix/g
From: Joe Perches
Date: Sun Nov 15 2026 - 11:16:07 EST
On Sat, 2026-11-14 at 16:24 +0100, Alejandro Colomar wrote:
> Except for the changes to "lib/tests/string_kunit.c", this was
> a scripted change:
>
> $ git ls-files \
> | grep '\.[ch]$' \
> | grep -v -e ^tools/ -e ^scripts/ -e ^include/ \
> | xargs grep -l strends \
> | xargs sed -i 's/strends/strsuffix/g';
You should really use coccinelle (spatch)
and this should probably be 2 patches.
https://coccinelle.gitlabpages.inria.fr/website/docs/main_grammar016.html
something like:
@@
expression a1;
expression a2;
@@
- strends(a1, a2)
+ strsuffix(a1, a2)