* [Cocci] Dangling whitespace on added newlines
@ 2013-01-29 21:10 Michael Stefaniuc
2013-01-30 10:37 ` Julia Lawall
0 siblings, 1 reply; 2+ messages in thread
From: Michael Stefaniuc @ 2013-01-29 21:10 UTC (permalink / raw)
To: cocci
Hello,
when coccinelle automatically adds a newline after removing "{}" the
added newline has dangling whitespace corresponding to the indentation
level. Please see the attached test case and generated patch.
thanks
bye
michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dangling.c
Type: text/x-csrc
Size: 161 bytes
Desc: not available
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20130129/d52532f5/attachment.bin>
-------------- next part --------------
@@
identifier mem;
statement S;
@@
mem = malloc(...);
if (mem == NULL)
-{
- ERR(...);
S
-}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dangling.diff
Type: text/x-patch
Size: 236 bytes
Desc: not available
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20130129/d52532f5/attachment-0001.bin>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-30 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29 21:10 [Cocci] Dangling whitespace on added newlines Michael Stefaniuc
2013-01-30 10:37 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox