Create project metrics with Doxygen?

I am currently using Doxygen to create documentation for my C ++ projects. Since Doxygen is great and generates a lot of information, I was wondering if there is a way to integrate project metrics into the generated documentation.

When I talk about metrics, I think about lines of code, number of classes, number of functions, cyclic complexity, etc.

Is there anything for this?

If this is not possible directly, is there a way to create a small Doxygen plugin to add additional information to the generating documentation?

+6
source share
1 answer

I would look at the XML output generated by doxygen, which may have the information you need, although you may need to run doxygen again.

You can add a script preprocessor before running doxygen, which will generate metrics for you and create a set of pages to display this information. (See INPUT_FILTER in a Doxyfile)

I would also put this question on doxygen-users@lists.sourceforge.net if you hadn't already.

+4
source

Source: https://habr.com/ru/post/903333/


All Articles