James Courtier-Dutton via llvm-dev
2018-May-14 22:17 UTC
[llvm-dev] Parsing C header files
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 On Mon, May 14, 2018, 6:18 PM James Courtier-Dutton via llvm-dev < llvm-dev at lists.llvm.org> wrote:> 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 > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180514/11f01d10/attachment.html>