Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any detailed Clang library API documentation? [closed]

Tags:

c++

clang

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?

like image 772
user3162587 Avatar asked Nov 10 '22 07:11

user3162587


1 Answers

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.

like image 198
rettichschnidi Avatar answered Nov 15 '22 06:11

rettichschnidi