This isn't a commit script, but some lint tools to check existing (and new) code to make sure it conforms to the style guide: svn up and see llvm/utils/lint/* .<br><br>% cd llvm<br><br>% utils/lint/cpp_lint.py `find lib/ -name \*\.h` | wc -l <br>
11175<br>% utils/lint/cpp_lint.py `find include/ -name \*\.h` | grep whitespace | wc -l<br>11063<br><br>% utils/lint/cpp_lint.py `find lib/ -name \*\.cpp` | wc -l <br>35265<br>% utils/lint/cpp_lint.py `find lib/ -name \*\.cpp` | grep whitespace | wc -l <br>
34881<br><br>We clearly have a ways to go, but llvm/utils/lint/remove_trailing_whitespace.sh can fix the majority of these issues.<br><br><div class="gmail_quote">2009/1/1 Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com">isanbard@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">And tab and >80 columns. ;-)<br>
<font color="#888888"><br>
-bw<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Jan 1, 2009, at 12:19 PM, Duncan Sands <<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>> wrote:<br>
<br>
>> Thank you!  That's one of my pet peeves. :-)<br>
>> I keep seeing trailing spaces everywhere; I'm considering removing<br>
>> them all<br>
>> (via "perl -pi").<br>
><br>
> If you do, then maybe you should also add a subversion commit script<br>
> that rejects<br>
> changes which introduce trailing spaces.<br>
><br>
> Ciao,<br>
><br>
> Duncan.<br>
</div></div><div><div></div><div class="Wj3C7c">> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br>