4 ms·
Clang can dump the AST to JSON but there are some headaches when it comes to things like specialization or other circumstances. If you wanted to go this route,
by gavinray 5y ago
Clang can dump the AST to JSON but there are some headaches when it comes to things like specialization or other circumstances.
If you wanted to go this route, using ClangSharp's XML output would probably be easier because it's been tailored to extract the "useful" bits and to expose some of the info that is hard to get at from a raw AST dump