From: johannes@sipsolutions.net (Johannes Berg)
To: cocci@systeme.lip6.fr
Subject: [Cocci] position confusion?
Date: Sat, 28 Jan 2017 00:10:06 +0100 [thread overview]
Message-ID: <1485558606.14579.15.camel@sipsolutions.net> (raw)
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
next reply other threads:[~2017-01-27 23:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-27 23:10 Johannes Berg [this message]
2017-01-28 6:37 ` [Cocci] position confusion? 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
Reply instructions:
You may reply publicly 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1485558606.14579.15.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=cocci@systeme.lip6.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.