Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find tutorials for Clang? [closed]

Tags:

c++

clang

I've been looking into using Clang for a tool. But the only "documentation" I can find is the Doxygen output, which is about as useful as the wrong end of an automatic shotgun, and the API itself is about as user-friendly as nuclear waste. It makes some reference to a programmer's guide, but I can't actually seem to find anything like that.

Are there any decent tutorials around the Clang C++ API?

like image 769
Puppy Avatar asked Dec 17 '12 22:12

Puppy


2 Answers

I found the following information illustrative:

  • Commented tutorial code to setup parsers
  • AST Visitors
  • Source of the Clang Tools
  • The tests in the source repo (llvm/tools/clang/test)

Though I also found the documentation tends to focus on the c api; libclang.

After reading some of the tutorials above most of the commented source code made much more sense.

However the code base moves quickly and I have found that there has been some refactoring activity with the latest checkouts from svn so the tutorials may need to be updated slightly.

like image 191
mythagel Avatar answered Oct 18 '22 08:10

mythagel


Best you can use is Eli Bendersky's blog posts on llvm/clang.

like image 5
ismail Avatar answered Oct 18 '22 09:10

ismail