'How to parse *.h files into some data-structured form?

My task is to make a class diagram with inheritance bonds from *.h file in QT Creator(C++).

I can't find a way how to read .h files and which class is responsible for it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source