[cfe-dev] Parsing C header files

James Courtier-Dutton via cfe-dev cfe-dev at lists.llvm.org
Sun Apr 29 16:31:36 PDT 2018


Hi,

I have a program that needs some help.
I wish to do a lookup with the key being the function name.
I wish it to return the list of parameters and their types.
I wish the program to ingest/parse .h header files, in order to build
the function name index in RAM.

Are there any parts of clang or llvm that I could use for the "parse"
part above?
I am guessing that as clang has to read header files and understand
them as part of the compile process, it should be able to help me in
some way.

Any suggestions would be welcome.

Kind Regards

James



More information about the cfe-dev mailing list