From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Wed, 02 Apr 2014 12:55:22 +0200 Subject: [Cocci] Restore source code from matched expressions? In-Reply-To: References: <1396374174.21529.93.camel@joe-AO722> <1396393876.21529.99.camel@joe-AO722> <533BCAAA.1050202@users.sourceforge.net> Message-ID: <533BEC9A.60208@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr >> Are there any chances that this software will become able to restore a preferred >> source code layout from the matched expressions? > > No, a metavariable contains no information about its format, so that it > can match with other metavariables, and when it is printed, Coccinelle > follows whatever strategy it follows, which is intended to follow the > conventions of Linux, but is not always successful. Do SmPL metavariables also manage the start and end positions for the source code part which was matched in a specific analysis context? Is such information not only available for position metavariables? Regards, Markus