Sign in to follow this  
Eldritch

Code Analysis tool for C++

Recommended Posts

I am looking for a free code analysis tool for C++. I am using PC-Lint at work, but unfortunately it's not free. And, if someone knows, I'm also looking for a code analyser for Lua, though I am certain it would be easier to just use Lua itself for proofing scripts, but it would be nice to see things like overwriting data with another type etc.

Share this post


Link to post
Share on other sites
http://developer.amd.com/cpu/codeanalyst/codeanalystwindows/Pages/default.aspx

this is what i'm currently using

Share this post


Link to post
Share on other sites
Hmm, that application seems to be a profiler, which is not quite what I need. I something like PC-Lint, that analyses code and gives a report about flaws with the code, like unreleased pointers, uninitialized pointers, etc.

Share this post


Link to post
Share on other sites
Visual Studio (some versions at least) has one built in. Compile your code with the /analyze switch.

That said, I'm not sure if how it compares to various Lint derivatives.

Share this post


Link to post
Share on other sites
I have used http://www.dwheeler.com/flawfinder/ and also http://sourceforge.net/projects/cccc (that is a c++ code line counter + cyclomatic compelxity and so on...)



Share this post


Link to post
Share on other sites
It seems most of these tools do straight C and not C++. Things like splint (and outside of analysis but of the same nature: the BLAST Model Checker) are extremely useful and I would love to see them add C++ functionality or an alternative that does C++.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this