Code Analysis tool for C++

Started by
6 comments, last by bombinator-dev 15 years, 10 months ago
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.
Advertisement
http://developer.amd.com/cpu/codeanalyst/codeanalystwindows/Pages/default.aspx

this is what i'm currently using
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.
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.
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...)



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).
There's splint, but it only checks straight C code.

You might also want to check the responses in this thread: Tool that finds unused code. Several links to code analysis tools are provided there.
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
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++.

This topic is closed to new replies.

Advertisement