Search code examples
c++parsingheader-filesmethod-signature

searching for c++ code parser to see all signatures


I'm looking for a c++ parser which is able to extract all the functions and methods with its signatures. Is there something like this?

I had a look at gccxml there I have the problem, that it is not able to use namespaces and its not fine when only a header file is present.


Solution

  • The Clang compiler obviously has the functionality to do this, if I remember correctly there's even an API to access the code tree generated by the parser.