[cfe-dev] Clang -ast-dump-xml question

Vane, Edwin edwin.vane at intel.com
Wed Mar 6 06:28:24 PST 2013


Any reason you couldn't write a clang tool to work directly on the AST to produce the different code representation?

-----Original Message-----
From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Matthias Grimmer
Sent: Tuesday, March 05, 2013 5:42 AM
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Clang -ast-dump-xml question

Hi

we are using clang and its -ast-dump-xml feature. Our goal is to convert the serialized clang-AST to a different code representation.
We think that the output, that -ast-dump-xml produces, is not well suited for parsing. Statements are represented as ASCII styled trees and also contain parts that confuse XML parsers (e.g. <line:18:2, col:18>).
Is there a better way to get a serialized version of the clang AST (XML, or any other format that is easier to parse)?
We would like to avoid writing a clang AST visitor for this purpose.

Thanks in advance

- Matthias Grimmer
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list