[llvm-commits] [llvm] r65185 - /llvm/trunk/utils/lint/remove_trailing_whitespace.sh

Misha Brukman brukman+llvm at gmail.com
Fri Feb 20 14:30:46 PST 2009


Author: brukman
Date: Fri Feb 20 16:30:46 2009
New Revision: 65185

URL: http://llvm.org/viewvc/llvm-project?rev=65185&view=rev
Log:
Keep the newline character at the end of the lines whose trailing whitespace we
are deleting; otherwise, everything ends up on a single line.

Modified:
    llvm/trunk/utils/lint/remove_trailing_whitespace.sh

Modified: llvm/trunk/utils/lint/remove_trailing_whitespace.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lint/remove_trailing_whitespace.sh?rev=65185&r1=65184&r2=65185&view=diff

==============================================================================
--- llvm/trunk/utils/lint/remove_trailing_whitespace.sh (original)
+++ llvm/trunk/utils/lint/remove_trailing_whitespace.sh Fri Feb 20 16:30:46 2009
@@ -3,4 +3,4 @@
 # Sample syntax:
 #   $0 *.cpp
 
-perl -pi -e "s/\s+\$//" $*
+perl -pi -e 's/\s+$/\n/' $*





More information about the llvm-commits mailing list