i have entered -ast-dump option for clang in cmd so the AST is shown to me.
the problem is how can i export this output into a text format?
i appreciate any help
your-clang-command > output.txt 2>&1
The first > redirects stdout into a file, and the 2>&1 redirects stderr into stdout.