执行make cppcheck: 得到cppcheck.xml文件: xml中给出了问题原因,不同严重等级,找到对应文件和行号即可修改。 2 PC-Lint 2.1 CONFIG.exe配置lnt文件 配置结束后得到std.lnt文件。 2.2 执行PC-Lint检查 pclint使用配置std.lnt进行测试: lint-nt.exe std.lnt 使用pclint进行单元测试: lint-nt.exe -u std.lnt...