Coccinelle archive on
 help / color / Atom feed
From: Markus Elfring <>
To: Coccinelle <>
Subject: [Cocci] Fixing SmPL scripts for data output according to structured file formats
Date: Fri, 8 Nov 2019 13:15:31 +0100
Message-ID: <> (raw)


I have taken another look at a script for the semantic patch language.

It belongs to the category of SmPL scripts which support data output also for
structured file formats. The output order matters then for the integration of
additional information so that preferably valid data are provided at
appropriate places.

A well-known file format like “Org mode” expects then that specific contents
should be enclosed by corresponding tags.

But a SmPL rule which uses the SmPL asterisk functionality triggers immediate
output of diff hunks so far (if a source code fragment was matched).
I find such a data processing approach questionable for this operation mode.

I imagine the following solution possibilities.

1. Separate SmPL rules should be used without SmPL asterisks.

2. It would occasionally be more convenient to redirect the output to standard
   files into corresponding variables.

How would you like to improve the software situation here?

Cocci mailing list

             reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 12:15 Markus Elfring [this message]
2019-11-08 12:51 ` Julia Lawall
2019-11-08 13:05   ` Markus Elfring

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Coccinelle archive on

Archives are clonable:
	git clone --mirror cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ \
	public-inbox-index cocci

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone