llvm-6502/utils/lint/remove_trailing_whitespace.sh
Misha Brukman 653222fc99 Added some basic lint tools for C++ and generic lint tool applicable to all
types of files (TableGen, LLVM assembly, HTML files, etc.)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61592 91177308-0d34-0410-b5e6-96231b3b80d8
2009-01-02 21:15:30 +00:00

7 lines
131 B
Bash
Executable File

#!/bin/sh
# Deletes trailing whitespace in-place in the passed-in files.
# Sample syntax:
# $0 *.cpp
perl -pi -e "s/\s+\$//" $*