public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] adjust code alignment
@ 2013-08-05 14:47 Julia Lawall
  2013-08-05 14:47 ` [PATCH] fs/nfs/inode.c: " Julia Lawall
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Julia Lawall @ 2013-08-05 14:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel-janitors

These patches result from the following semantic patch
(http://coccinelle.lip6.fr/), which checks for successive statements that
are not aligned.

@bad@
statement S;
expression e;
position p1,p;
@@

S@p1
e@p;

@script:ocaml@
p1 << bad.p1;
p << bad.p;
@@

if not ((List.hd p1).line = (List.hd p).line)
then include_match false

@r@
expression e1,e2;
position p1 != bad.p,p2;
@@

e1@p1;
e2@p2;

@script:ocaml@
p1 << r.p1;
p2 << r.p2;
@@

if not ((List.hd p1).col = (List.hd p2).col) &&
   not ((List.hd p1).line = (List.hd p2).line)
then begin print_main "" p1; print_secs "" p2 end


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-08-07  2:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 14:47 [PATCH] adjust code alignment Julia Lawall
2013-08-05 14:47 ` [PATCH] fs/nfs/inode.c: " Julia Lawall
2013-08-05 14:59   ` Myklebust, Trond
2013-08-06 18:04     ` Steve Dickson
2013-08-07  1:58       ` Dave Quigley
2013-08-05 14:47 ` [PATCH] drivers/scsi/lpfc/lpfc_init.c: " Julia Lawall
2013-08-05 14:47 ` [PATCH] net/vmw_vsock/af_vsock.c: drop unneeded semicolon Julia Lawall
2013-08-05 18:08   ` David Miller
2013-08-05 14:47 ` [PATCH] trivial: adjust code alignment Julia Lawall
2013-08-05 16:06   ` Dan Carpenter
2013-08-05 16:17     ` Joe Perches
2013-08-05 16:30       ` Dan Carpenter
2013-08-06  0:51         ` Joe Perches
2013-08-05 16:19     ` Julia Lawall
2013-08-05 16:24       ` walter harms
2013-08-05 16:28         ` Julia Lawall
2013-08-05 17:05         ` Dan Carpenter
2013-08-05 16:52       ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox