From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Wed, 5 Oct 2016 19:21:49 +0200 Subject: [Cocci] Replacing one variable name with another In-Reply-To: <87shsa7p71.fsf@thinkpad.rath.org> References: <87r37vzd8j.fsf@vostro.rath.org> <87shsa7p71.fsf@thinkpad.rath.org> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > 2. ..and how would I go about if instead of the type, I want to replace > a variable name? (my_type *ptr --> my_type *pointer). Would you like to try another small SmPL script out like the following? @name_replacement@ @@ my_type * -ptr +pointer ; How will your software development experiments evolve for the desired application of the semantic patch language? Regards, Markus