From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Easier search for assignment targets with SmPL
Date: Tue, 23 May 2017 11:01:45 +0200 [thread overview]
Message-ID: <01dd4e26-0864-df8e-4b43-e054c0e61400@users.sourceforge.net> (raw)
In-Reply-To: <c77fb009-04c5-c381-e016-549cd7592059@users.sourceforge.net>
> var = action(...);
This specification looks also simple for the semantic patch language
at first glance.
I tried to express that a specific value is assigned to something.
But this ?something? could be a different item depending on the position
in the source code.
1. Variable
2. Expression
3. Element for a designated initialiser
I would appreciate if I do not need to repeat specifications for these cases
in SmPL code. How do you think about the possibility to support the desired
source code search by an additional metavariable type there?
Can it become safer and more convenient to handle assignments here?
Regards,
Markus
next prev parent reply other threads:[~2017-05-23 9:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-14 15:41 [Cocci] Checking exception handling implementations with SmPL SF Markus Elfring
2017-05-18 13:00 ` [Cocci] Checking source code (including optional parts) " SF Markus Elfring
2017-05-18 15:21 ` [Cocci] Safe determination of function properties for SmPL scripts SF Markus Elfring
2017-05-18 16:00 ` [Cocci] Checking failure predicates with SmPL SF Markus Elfring
2017-05-23 9:01 ` SF Markus Elfring [this message]
2017-05-23 9:06 ` [Cocci] Easier search for assignment targets " Julia Lawall
2017-05-23 10:52 ` SF Markus Elfring
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=01dd4e26-0864-df8e-4b43-e054c0e61400@users.sourceforge.net \
--to=elfring@users.sourceforge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox