How to produce human readable format of an ast dump?

I have a clang produced ast dump which I would like to investigate. Would any one please tell me how to do that on command line. Please note that I do NOT have the original C file the ast dump is created from. Overall, what I need is:
clang Args foo.ast to produce human readable version of the foo.ast.


I think that’s -Xclang -ast-dump-all.

does not work. Thanks anyway.

What format is this file? Is this like the bitcode used for precompiled headers?

Hi Mehdi,

The file is generated using clang++ -emit-ast foo.cpp.