Skip to content

[CLANG 3.x] A GraphViz generator for Clang AST, it can be use as tutorial for people who want to use Clang...

Notifications You must be signed in to change notification settings

tristanvdb/Clang2Dot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clang2Dot

If you are looking for a tutorial: https://github.com/loarabia/Clang-tutorial/ contains all the basics.

I am working with Clang, basically transforming Clang AST to another (Sage III from ROSE Compiler).

I have to share the result of this work ; as if you have try something similar, you may have noticed that most tutorial are out-of-date and there is no Graphviz utility for Clang AST (not that I can find). This code is out-of-date too as I am using LLVM/Clang version 3.0 (even if 3.1 is already out), but at least you know what version you should use...

Also, you will probably have to enable RTTI when compiling LLVM/Clang:

  $ # configure LLVM/CLANG
  $ export REQUIRES_RTTI=1
  $ make

You can notice that it is a work in progress. But as I need it to move from c to c++ support in my project, it should reach a functionnal level after a few days (today is 06/13/12).

Once the base have been laid down, I would like to have a good doxygen doc and other LLVM/Clang versions support. If you want to help you are welcome.

I'd like it to be a good tutorial...

About

[CLANG 3.x] A GraphViz generator for Clang AST, it can be use as tutorial for people who want to use Clang...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published