代码分析工具splint安装介绍

官网

http://www.splint.org/

splint能干什么?

splint是一个静态检查C语言代码安全弱点和编写错误的开源程序.(不支持C++)
splint会进行多种常规检查,包括
空指针
内存泄漏
内存越界
未使用的变量,
类型不一致,
使用未定义变量,
无法执行的代码,忽略返回值,
执行路径未返回,
无限循环等错误.
。。。。。

split的特点

功能强大,使用复杂,上手慢。
很久没有更新了。

安装

wget http://www.splint.org/downloads/splint-3.1.2.src.tgz
tar –xzf splint-3.1.2.src.tgz
cd splint-3.1.2
./configure && make && make install

vim ~/.bashrc
export LARCH_PATH=/usr/local/share/splint/lib
export LCLIMPORTDIR=/usr/local/share/splint/import
原文地址:https://www.cnblogs.com/muahao/p/9090525.html