I've been reading some codes which heavily uses Clang library API. However, I'm not familiar with Clang API at all and have to google it all the time. For example, when I read some code like clang::EnumConstantDecl
, I'll follow google and go to this page. It seems that every thing about EnumConstantDecl
can be found here, but all what I see is just a list of API(or just some function prototype) without any concrete explanation. I still have no idea how to use it.
So, is there any other good documentation? Or, is there any basic knowledge I'm missing?
What helps me the most is simply searching the LLVM/Clang source itself for usages of e.g. clang::EnumConstantDecl
or its member and methods. It serves pretty well as a source of high-quality usage examples. Just make sure you are using an IDE that can deal with with the massive amount of code.
I doubt that there is a more efficient way to get used to this API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With