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) 开发者_C百科
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)?
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.
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.
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.
精彩评论