19

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)?

asked Apr 4, 2011 at 15:28

3 Answers 3

8

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.

answered Apr 4, 2011 at 15:58
Sign up to request clarification or add additional context in comments.

5 Comments

I found this, too, but didn't find a link to the installation site... On some points on the website it is said that it's already included in CDT, but it's definitly not.
Ah, I found it after a long search. You have to add the CDT Update site into the plugin installer and there you can select Codan for installing. But it has less features than cppcheck, by far!
Good to know. I'll have to look into cppcheck. Thanks for the post!
This is a bit of a late reply: but the new Eclipse Indigo includes and uses Codan by default, so that adds a lot of improvement.
Codan seems to be a framework/structure for "concrete" checkers to fit into. For example, I imagine you can get Lint checking your Eclipse project code via Codan. I thought this question was more about alternatives to Lint than about a meta-checker like Codan... anyone agree?
2

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.

answered May 12, 2011 at 19:36

Comments

0

I suggest a free plugin based on Codan framework called Artemis. You can get it from ecliplse marketplace. There are other checkers but only plugins integrated into Codan, like this one, can perform real-time analysis in Eclipse.

answered May 4, 2019 at 7:55

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.