Coccinelle archive on lore.kernel.org
 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

Hello,

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.

Example:
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)?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ 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 lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/cocci/0 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/ https://lore.kernel.org/cocci \
		cocci@systeme.lip6.fr cocci@archiver.kernel.org
	public-inbox-index cocci


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/fr.lip6.systeme.cocci


AGPL code for this site: git clone https://public-inbox.org/ public-inbox