How to obtain Software Metrics from projects?

Hi,
For a school assignment I’m supposed to obtain software metrics from my project (I chose it to do it in the Unreal Engine). Is there any plugin that can find software metrics like there is in Eclipse? Or is there a way I can get all the code from my project, open it in Visual Studios, and then get the metrics from there?

Some of the software metrics would include: lines of code, number of methods, depth of inheritance tree, and cyclomatic complexity

Thank you

I recommend using Source Monitor.
http://www.campwoodsw.com/sourcemonitor.html

It’s a little painful to use, but it will give you metrics like lines of code, number of statements, number of branches, percent comments, …
Sadly the free pickings for C++ analysis are scant.

if any of those answers worked for you, please mark them as the correct answer or if none of them did please ask for something more precise so this question may be resolved :slight_smile:

(in this case there was just the one! so if it worked great otherwise maybe add more to your question?)