cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] Q: does spatch understand typeof?
@ 2020-01-15 11:25 Oleg Nesterov
  2020-01-15 12:09 ` Julia Lawall
  0 siblings, 1 reply; 8+ messages in thread
From: Oleg Nesterov @ 2020-01-15 11:25 UTC (permalink / raw)
  To: Julia Lawall; +Cc: cocci

Hello,

trivial example:

	@r@
	int x;
	@@

	* x = 0;

C code:

	void f(void)
	{
		int a;
		__typeof__(a) b;

		a = 0;		// this matches
		b = 0;		// this doesn't
	}

is it correct?

Thanks,

Oleg.

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

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

end of thread, other threads:[~2020-01-15 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 11:25 [Cocci] Q: does spatch understand typeof? Oleg Nesterov
2020-01-15 12:09 ` Julia Lawall
2020-01-15 15:30   ` Oleg Nesterov
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).