cppcheck的安装使用
下载源码
https://github.com/danmar/cppcheck
编译安装
#
sudo apt install libpcre3 libpcre3-dev
cd cppcheck
make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function"
sudo make install MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck
使用
cppcheck --enable=all --force --verbose hybrid_a_star.cc