1. 程式人生 > >5個靜態程式碼檢查工具

5個靜態程式碼檢查工具

FlexeLint

支援windows,linux

http://www.gimpel.com/html/flex.htm

pclint

只支援 windows

http://www.gimpel.com/html/pcl.htm

splint

只支援c程式碼的檔案

cppcheck

支援c++

Cppcheck是一種C/C++程式碼缺陷靜態檢查工具。不同於C/C++編譯器及其它分析工具,Cppcheck只檢查編譯器檢查不出來的bug,不檢查語法錯誤。

logiscope rulecheck

gcc


  -w  Inhibit all warning messages.


 -Wall
           All of the above -W options combined.  This enables all the warnings
           about constructions that some users consider questionable, and that
           are easy to avoid (or modify to prevent the warning), even in con-
           junction with macros.  This also enables some language-specific warn-
           ings described in C++ Dialect Options and Objective-C and
           Objective-C++ Dialect Options.


把“幾乎”所有warning都顯示出來。