Eclipse metrics plugin for C++

tree-hacker picture tree-hacker · Dec 8, 2010 · Viewed 9.3k times · Source

Does anyone know a good metrics plugin for Eclipse that works with C++ ?

I'm looking for lines of code mainly. Thanks.

Answer

CuriousMarc picture CuriousMarc · Aug 23, 2013

Eclipse Metrics is very powerful but only works for Java unfortunately.
Project Code Meter is a professional, comprehensive, but also expensive tool.
cccc is an awful, hacked command line tool for Windows only.
However Code Analyzer is a simple, free graphics tool that works great with C and C++.

It took a look at the help to get started though, you need to:

  • select an extension set from the Tools->Extension Set->Select menu (I chose the C set)
  • right click on the "New" Code Set icon and do "Add Branch", then navigate to your source root folder
  • click run, and here you go:

enter image description here