源码包:cppcheck-1.61.tar.gz ./cppcheck --enable=all ./ 2> result cat result | egrep "null" 可以使用egrep检索出各种分类代码,上面是可能包含空指针的代码处