llvm.org GIT mirror llvm / release_34 utils / lint / remove_trailing_whitespace.sh
release_34

Tree @release_34 (Download .tar.gz)

remove_trailing_whitespace.sh @release_34raw · history · blame

1
2
3
4
5
6
#!/bin/sh
# Deletes trailing whitespace in-place in the passed-in files.
# Sample syntax:
#   $0 *.cpp

perl -pi -e 's/\s+$/\n/' $*