Coccinelle archive on
 help / color / Atom feed
From: Oleg Nesterov <>
To: Julia Lawall <>
Cc: Julia Lawall <>,
Subject: Re: [Cocci] Q: does spatch understand typeof?
Date: Wed, 15 Jan 2020 16:30:35 +0100
Message-ID: <> (raw)
In-Reply-To: <alpine.DEB.2.21.2001151308380.5079@hadrien>

On 01/15, Julia Lawall wrote:
> Yes, it doesn't currently understand typeof.  If it's a big problem, it
> should be easy to fix.

OK, thanks Julia.

Another question...


	struct TTT { int mem; } *ptr;


	#include "inc.h"

	void func(void)
		ptr->mem = 0;


	struct TTT *p;

	* p->mem

$ spatch --sp-file test.cocci test.c

	(ONCE) Expected tokens mem TTT
	Skipping: test.c

I tried to play with various --.*include.* options, but nothing seems to work
unless I add "inc.h" to the command line explicitly.


Cocci mailing list

  reply index

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15 11:25 Oleg Nesterov
2020-01-15 12:09 ` Julia Lawall
2020-01-15 15:30   ` Oleg Nesterov [this message]
2020-01-15 15:45     ` Julia Lawall
2020-01-15 15:59       ` Oleg Nesterov
2020-01-15 16:00         ` Julia Lawall
2020-01-15 15:53     ` Oleg Nesterov
2020-01-15 15:59       ` Julia Lawall

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