As an academic project, I have to create a front-end for a static analyser. I am new to C/C++ and my main language is Java. Initially I have to use Clang to generate an AST for the input C program. Then I need to create the corresponding CFG where after I will do some other tasks. I am struggling to find any good examples or tutorials of how to generate an AST of a C program. Any thoughts or suggestions of how should I approach this project?
Thanks in advance.