I need to build an AST using clang and the only tutorials that I found are vague and two years out of date. Could anybody point me to an example?
There are several tutorial available that demonstrate the use of the Preprocessor class and how to build an AST:
Preprocessor