Add support for those funny gcc ({ ... }) block statements.
[smatch.git] / smatch_scripts / find_null_params.sh
blob5a2a324d46ff08c2d9e3aa2870016d3ce492abe6
1 grep " unchecked " warns.txt | cut -d ' ' -f 5- | sort -u > unchecked
2 grep " undefined " warns.txt | cut -d ' ' -f 5- | sort -u > null_calls.txt
3 cat null_calls.txt unchecked | sort | uniq -d > null_params.txt
4 IFS="
6 for i in $(cat null_params.txt) ; do
7 grep "$i" warns.txt | grep -w undefined
8 done | tee null_probs.txt