Coccinelle archive on
 help / color / Atom feed
* [Cocci] Data processing with pointer types/expressions
@ 2019-11-18 12:26 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-11-18 12:26 UTC (permalink / raw)
  To: Coccinelle


I am fiddling with another SmPL script for a while.

My software development attention increased then also for the used metavariable
declarations like the following.
* T *src_ptr
* T[] src_arr

These worked to some degree. Now I wonder about this fact because they were
applied at source code places where pointer expressions (or arrays) should be
passed as parameters for known functions. The provided information corresponds
to pointer types in the shown use case.

It seems that there is a risk for confusion for the desired data processing
when also arrays which store pointers should be found in the source code.

Can corresponding type variations be clarified better?

Cocci mailing list

^ permalink raw reply	[flat|nested] only message 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-11-18 12:26 [Cocci] Data processing with pointer types/expressions 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

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone