Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++, Eclipse CDT code analysis?

Are there any good plugins for static code analysis for Eclipse CDT? I found two so far:

  • Cppcheck plugin, but this still needs the original cppcheck executable
  • CppChecker, but this didn't work (it didn't do anything)

Are there any more that are better? Or how do I get CppChecker to do something (or is it a static code analyiser at all? the website is not clear at all)?

like image 762
blubberbernd Avatar asked Apr 04 '11 15:04

blubberbernd


2 Answers

There is another called "Codan," stands for CODe ANalysis.

It can be reviewed at this wiki, with links to the tool:

http://wiki.eclipse.org/CDT/designs/StaticAnalysis

I cannot answer whether this is the better than your list, but at least it's another option you can review. Eclipse integration seems to be its only requirement.

Keep in mind that this is a work in progress, but given its goals, it may suit your short-term needs.

like image 51
Rick Avatar answered Sep 21 '22 21:09

Rick


You can always run lint inside Eclipse as well. I wrote up a blog entry on doing it manually. However, there also exists Visual Lint and it works in VS and Eclipse. It's not perfect but it's easier than setting it all up manually.

like image 24
Tod Avatar answered Sep 21 '22 21:09

Tod