Hi Sean,

> Kesha, do you think you could write a little script that runs cppcheck on
> all of BRL-CAD too?  It would be interesting to see their report and
> perhaps compare their results with other static analyzer's we've run in the
> past.  It'll need to scan include and src, but ignore all of src/other.


Run the following :
cd brlcad
cppcheck -isrc/other/ include/ src/ --enable=all 2>cppcheck_brlcad.txt

It checks for issues in 1690 files under all src/ except src/other and all
include/ .

Also, by default,(i.e. without --enable=all ) , only error messages are
shown.

To get just Stylistic issues, change --enable=all to --enable=style

To get just unused function issues, change --enable=all to
--enable=unusedFunction

The manual claims that it supports multithread ( by option -j like -j 4 ),
but when I tried, it said, "cppcheck: unusedFunction check can't be used
with '-j' option, so it's disabled." So, if not checking for
unusedFunction, it can also have mutithreaded checking.

Cheers !
-- 
Kesha Shah.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to