new script: show_ifs.sh
commit00786b6f506e0f836b6799dde8ef9b52eed39815
authorDan Carpenter <error27@gmail.com>
Thu, 7 Jan 2010 21:52:51 +0000 (8 00:52 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 7 Jan 2010 21:52:51 +0000 (8 00:52 +0300)
tree97e56dbdf4ad4946b4e6137532596fe604ea5a89
parentabcedb85bcd91eebf11bae5cdaf6d6e0bb5e1767
new script: show_ifs.sh

Smatch prints a warning when code does stuff like:
if(x)
;
The point of it was to catch extra semi-colon mistakes like:
if(foo);
frob();
Anyway it's painful to dig through all the false positives but
the new show_ifs.sh should let you do a basic audit very quickly.

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