<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2019 at 8:59 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">----- Am 7. Aug 2019 um 15:41 schrieb joel <a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>:<br>
<br>
> Hi<br>
> <br>
> While looking at assembly language formatting, I decided to grep for tabs<br>
> in source<br>
> files. In cpukit and testsuites, there are a LOT of files with tabs.<br>
> <br>
> $ find cpukit testsuites/ -name "*.[ch]" | xargs -e grep -rlP "\t" | grep<br>
> -v libnetworking | grep -v pppd | grep -v contrib | wc -l<br>
> 530<br>
> <br>
> That may be picking up a few extra files but that's still a lot of files.<br>
> <br>
> Any comments?<br>
<br>
My approach to white space in source files would be to pick up the best source code formatter available, select a configuration which fits best to the existing style, run it over the code (excluding code which we want to keep in synchronization with an upstream) and later run every commit through it.<br></blockquote><div><br></div><div>I'm not disagreeing with you but no one has ever found a formatter and defined a style that matches.</div><div><br></div><div>--joel </div></div></div>