From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Wed, 02 Apr 2014 11:00:34 +0200 Subject: [Cocci] code style reformatting In-Reply-To: References: <1396374174.21529.93.camel@joe-AO722> <1396393876.21529.99.camel@joe-AO722> <533BCAAA.1050202@users.sourceforge.net> Message-ID: <533BD1B2.7010301@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. Thanks for this clarification. > There are tools such as indent that reformat software as a whole using > various conventions. How do you think about to avoid such additional source code style reformatting? Can alternative layout rules be integrated into an improved handling of semantic patches? Regards, Markus