Skip to contentSkip to conversation

Improving support for searching format strings

cocci Markus Elfring 1 participant 1 message Jul 29, 2025

lore
Share & tools
lore
#0 lore raw

Hello,

I would like to try something out with another script for the semantic patch language.

@display@
format list fl;
@@
*"@fl@ \n"

Unfortunately, I stumbled on the following test result then.

Markus_Elfring@Sonne:…/Projekte/Coccinelle/janitor> /usr/bin/spatch --parse-cocci show_redundant_space_before_line_break_in_format_string.cocci …
@display@
fragment list fl;
@@

*"@fl@ \n"

warning: display: metavariable fl not used in the - or context code …

Can the data processing be extended anyhow?
https://lore.kernel.org/lkml/?q=%22Remove+space+before+newline%22

Regards,
Markus