summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:30:46 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-02-20 22:30:46 +0000
commit5e5503f5dac799fefd3caace20203739a0f6d3da (patch)
tree7dc10dbb7bc6a152cb6cc09ba476238988ab98a0
parentf2e5bd8d2226ce30de60b8d4c9fd460dee4c41fc (diff)
downloadbcm5719-llvm-5e5503f5dac799fefd3caace20203739a0f6d3da.tar.gz
bcm5719-llvm-5e5503f5dac799fefd3caace20203739a0f6d3da.zip
Keep the newline character at the end of the lines whose trailing whitespace we
are deleting; otherwise, everything ends up on a single line. llvm-svn: 65185
-rwxr-xr-xllvm/utils/lint/remove_trailing_whitespace.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lint/remove_trailing_whitespace.sh b/llvm/utils/lint/remove_trailing_whitespace.sh
index de58dbab7fc..6e0c9be0932 100755
--- a/llvm/utils/lint/remove_trailing_whitespace.sh
+++ b/llvm/utils/lint/remove_trailing_whitespace.sh
@@ -3,4 +3,4 @@
# Sample syntax:
# $0 *.cpp
-perl -pi -e "s/\s+\$//" $*
+perl -pi -e 's/\s+$/\n/' $*
OpenPOWER on IntegriCloud