I need to generate clang ASTs of different C++ files in order to extract method invocation and class instance creation nodes, declaration nodes and control-flow nodes.
I can already generate and print the AST of a given file
file.cpp using the command
clang -Xclang -ast-dump -fsyntax-only file.cpp , but as I am new to clang, I don’t know if a specific module or method exists to extract and store in a separate file the specific information mentioned above.
Source: Windows Questions C++