All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] position confusion?
@ 2017-01-27 23:10 Johannes Berg
  2017-01-28  6:37 ` Julia Lawall
  2017-01-28  6:40 ` Vaishali Thakkar
  0 siblings, 2 replies; 6+ messages in thread
From: Johannes Berg @ 2017-01-27 23:10 UTC (permalink / raw)
  To: cocci

This is nonsense, but I don't see why it shouldn't parse:

@a@
type T;
identifier x;
position p;
@@
T x at p = { };

@b@
type T;
identifier x;
position p;
@@
T x at p = { };

@@
position p != a.p;
position q != b.p;
type T;
identifier x;
@@
*T x at q = {};

->
148 149
Fatal error: exception Failure("meta: parse error: \n = File \"/tmp/test.spatch\", line 17, column 16,??charpos = 148\n????around = 'p', whole content = position q != b.p;\n")


if I replace 'p' by 'q' in @b@, it works fine?

johannes

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

end of thread, other threads:[~2017-01-28  9:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 23:10 [Cocci] position confusion? Johannes Berg
2017-01-28  6:37 ` Julia Lawall
2017-01-28  6:40 ` Vaishali Thakkar
2017-01-28  8:18   ` Johannes Berg
2017-01-28  9:11     ` Vaishali Thakkar
2017-01-28  9:16       ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.