From: julia.lawall@lip6.fr (Julia Lawall) Date: Fri, 17 Jul 2015 11:50:52 +0200 (CEST) Subject: [Cocci] Deletion of blank lines? In-Reply-To: <55A743F3.6000500@users.sourceforge.net> References: <55A60721.5050209@users.sourceforge.net> <55A743F3.6000500@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Thu, 16 Jul 2015, SF Markus Elfring wrote: > > void receiver(...) > > { > > ... > > ( > > - exit(...); > > | > > - fprintf(...); > > ) > > ... > > } > > ? > > diff -u -p a/backend/ipp.c b/backend/ipp.c > > --- a/backend/ipp.c > > +++ b/backend/ipp.c > > @@ -3271,8 +3271,6 @@ sigterm_handler(int sig) /* I - Signal > > > > if (tmpfilename[0]) > > unlink(tmpfilename); > > - > > - exit(1); > > I find another detail interesting in this generated patch. > The Coccinelle software suggests here to delete also a blank line > at a specific source code place. I would usually interpret > this SmPL script example in the way that I did not express the removal > of blank lines. Is there a blank line after the call to exit(1); also? I think that it tries toavoid creeating two blank lines. julia > > How often do you care if additional source code reformatting should > happen around a specific change (or not)? > > Regards, > Markus > _______________________________________________ > Cocci mailing list > Cocci at systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci >