Coccinelle archive on
 help / Atom feed
* [Cocci] Splitting a source code search specification from a SmPL rule into more rules?
@ 2019-03-06  9:40 Markus Elfring
  0 siblings, 0 replies; 1+ messages in thread
From: Markus Elfring @ 2019-03-06  9:40 UTC (permalink / raw)
  To: Coccinelle


The semantic patch language supports also to put longer code into SmPL rules.
It might look convenient and appropriate to specify such code for a single
SmPL rule. But it can happen also that you would like to reduce source code
search efforts and present meaningful analysis reports.

It can be specified that a specific function call should be found as
a precondition.

A corresponding hit can be additionally indicated in a variable for
an embedded programming language (like OCaml or Python) in a subsequent script
rule so that this variable can influence a message construction in a final rule.

How are the chances to restart (or continue) the code search after found places
(without repeating SmPL code from the precondition)?

Cocci mailing list

^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06  9:40 [Cocci] Splitting a source code search specification from a SmPL rule into more rules? Markus Elfring

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

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox