*new* strip_whitespace.pl: removes all the whitespace from a source file
commit19c035ab72a66b0ff3f25a1d48d7b9470903cfeb
authorDan Carpenter <error27@gmail.com>
Mon, 22 Mar 2010 20:36:46 +0000 (22 23:36 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 22 Mar 2010 20:36:46 +0000 (22 23:36 +0300)
tree7d70228c061d7787045f2f3091f4c0dc9a8ef574
parentf0a6644ddc8d5a3c34c6892fd69259c2892963d3
*new* strip_whitespace.pl: removes all the whitespace from a source file

Smatch has whitespace_only.sh which checks kernel patches to make sure
that only whitespace changed.  It worked by compiling the module twice
which was slow.  Also it potentially missed changes in #ifdefed out code.

The new strip_whitespace.pl script is instant.  Also it's easier to read
the output to see what changed.

I've modified whitespace_only.sh to use strip_whitespace.pl unless you pass
--compile to it.  In that case it compiles the code and also uses
strip_whitespace.pl.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_scripts/strip_whitespace.pl [new file with mode: 0755]
smatch_scripts/whitespace_only.sh