I am trying to use Clang to manipulate C++ source-code, but I am having trouble discovering the API.
I would like to take a string of C++ source-code and generate an AST from it; something like:
auto myAst = clang::parse("auto x = 1 + 1;");
Is there a minimal working example of this?
You can try the next code: