[cfe-dev] Dump AST without control codes

Michael Collison via cfe-dev cfe-dev at lists.llvm.org
Sat Dec 8 23:04:53 PST 2018


Hello,

I am using the clang C++ api to dump filtered declarations to a file 
using decl->dump(f). The problem I am encountering is the resulting file 
contains control codes to colorize the display. Is there any way to 
programmatically dump the ast to achieve the same effect as:

'clang -Xclang -ast-dump -fno-diagnostics-color'?

Regards,

Michael Collison





More information about the cfe-dev mailing list