Hi,

I wish to make a program that parses C header files and lists all the
declarations.
Can anyone help point me in the right direction. Where in the LLVM or
CLANG source code could maybe help me?

Kind Regards

James

Hi James,

You could look here for an example:

https://github.com/zig-lang/zig/blob/master/src/translate_c.cpp

Regards,
Andrew

LMAO Andrew Kelly was here, he should’ve used actual commit, because main branch now doesn’t contain that file