From: julia.lawall@lip6.fr (Julia Lawall) Date: Tue, 23 May 2017 11:06:13 +0200 (CEST) Subject: [Cocci] Easier search for assignment targets with SmPL In-Reply-To: <01dd4e26-0864-df8e-4b43-e054c0e61400@users.sourceforge.net> References: <01dd4e26-0864-df8e-4b43-e054c0e61400@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Tue, 23 May 2017, SF Markus Elfring wrote: > > 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? I have no idea what you are asking for. In any case, an expression metavariable already matches a variable. I don't know what a designated initializer is. julia > > Regards, > Markus > _______________________________________________ > Cocci mailing list > Cocci at systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci >