loarabia / Clang-tutorial

A collection of code samples showing usage of clang and llvm as a library
Other
754 stars 122 forks source link

parsing structures in c header file #27

Open jyothischali opened 8 years ago

jyothischali commented 8 years ago

Hi, in the tutorial, https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig, it is explaine about parsing c file. But there are no enough information of parsing a c header file, getting the structure name, its member names & type, ..etc. Would that be added in the tutorial or is there another tutorial for that ?

loarabia commented 8 years ago

You're correct. There isn't a tutorial that shows off the explicit techniques for parsing a header. I'd love to see a pull request for such an example though.

jyothischali commented 8 years ago

Hi, who can make a pull request for that ?

loarabia commented 8 years ago

I'm open to receiving pull requests from anyone. So for instance, if you would like to try to make the change and submit a pull request, I'd be happy to code-review and merge the change into the codebase for the benefit of others.