Re: [cocci] Moving string literals with SmPL?
Julia Lawall <[email protected]>
| Newsgroups | fr.inria.cocci |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Nov 2025, Markus Elfring wrote: > >> // See also: > >> // crypto_rng_show() > >> // https://elixir.bootlin.com/linux/v6.18-rc4/source/crypto/rng.c#L82-L86 > >> @adjustment@ > >> constant char[] last_literal, literal; > >> expression context; > >> @@ > >> -seq_printf(context, literal); > >> seq_printf(context, > >> + literal > > > > Why is there no comma after literal? > > > >> last_literal, > >> ...); > > I would like to use adjacent string literals here. > https://en.cppreference.com/w/c/language/string_literal.html#Explanation That is not supported.