Re: [cocci] Adding a string literal after a string literal with SmPL?
Markus Elfring <[email protected]> Sun, 7 Jun 2026 13:21:33 +0200
| Newsgroups | fr.inria.cocci |
|---|---|
| Message-ID | <[email protected]> |
> Under which circumstances will the following data processing approach be=
come supported?
>=20
> Another SmPL script variant:
@addition@
identifier action;
@@
action("My test"
+ " case!\n"
)
Questionable test result (in combination with the software =E2=80=9CCoccin=
elle 1.3.1=E2=80=9D):
Markus_Elfring@Sonne:=E2=80=A6/Projekte/Coccinelle/Probe> /usr/bin/spatch =
=2D-parse-cocci add_literal_after_literal.cocci
=E2=80=A6
plus: parse error:=20
File "add_literal_after_literal.cocci", line 5, column 17, charpos =3D 6=
8
around =3D '"',
whole content =3D + " case!\n"
Would any more software users like to achieve that such a simple source co=
de transformation
can work also with this evolving development tool?
https://en.cppreference.com/c/language/string_literal#Explanation
Regards,
Markus