[cocci] Using seq_buf_putc() calls more often?

Markus Elfring <[email protected]> Wed, 24 Jun 2026 12:21:20 +0200
Newsgroups fr.inria.cocci
Message-ID <[email protected]>
Hello,

I noticed another improvable implementation detail once more
also according to seq_buf_puts() calls.
https://elixir.bootlin.com/linux/v7.1.1/A/ident/seq_buf_puts

Another tiny SmPL script variant:
@replacement@
expression e;
@@
-seq_buf_puts
+seq_buf_putc
 (e,
(
-"\n"
+'\n'
|
-" "
+' '
)
 )


Would any more contributors become interested in such a source code
transformation pattern?

Regards,
Markus