public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] adjust code alignment
@ 2013-08-10 17:34 Julia Lawall
  2013-08-10 17:34 ` [PATCH 1/2] arch/x86/crypto/camellia_glue.c: " Julia Lawall
  2013-08-10 17:34 ` [PATCH 2/2] crypto/camellia_generic.c: " Julia Lawall
  0 siblings, 2 replies; 6+ messages in thread
From: Julia Lawall @ 2013-08-10 17:34 UTC (permalink / raw)
  To: trivial; +Cc: kernel-janitors, linux-kernel

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] 6+ messages in thread

end of thread, other threads:[~2013-08-14 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10 17:34 [PATCH 0/2] adjust code alignment Julia Lawall
2013-08-10 17:34 ` [PATCH 1/2] arch/x86/crypto/camellia_glue.c: " Julia Lawall
2013-08-14 10:41   ` Herbert Xu
2013-08-14 10:44     ` Julia Lawall
2013-08-14 13:52   ` [PATCH 1/2] arch/x86/crypto/camellia_glue.c: replace commas by semicolons and " Julia Lawall
2013-08-10 17:34 ` [PATCH 2/2] crypto/camellia_generic.c: " Julia Lawall

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