Jump to content
  • Advertisement
Sign in to follow this  
Eldritch

Code Analysis tool for C++

This topic is 3700 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
I am not sure there are any that are free that are PC-Lint's equivalent. I've looked a lot and not seen any (although I need to check out cccc from rogma's post).

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!