[cfe-dev] Viewing ASTs
James.Molloy at arm.com
Fri Feb 10 15:29:28 PST 2012
-ast-view is only available as a cc1 command. You're passing it to the driver.
Invoke clang with -### to find the command the driver is forming to compile. Then copy-paste that command, adding -ast-view (or --help-hidden to see all the cc1 options).
From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] On Behalf Of sskavya [kavyass at gmail.com]
Sent: 10 February 2012 19:55
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Viewing ASTs
I am trying to view the AST obtained after parsing, in a graphical
Certain web pages spoke about a command line option '-ast-view' that helps
these through graphviz. However when I use the -ast-view option, the
compiler throws a warning saying
clang: warning: argument unused during compilation: '-ast-view'
Is there anything that I might be missing out? I could not find any notes on
this in the clang manuals.
View this message in context: http://clang-developers.42468.n3.nabble.com/Viewing-ASTs-tp3733521p3733521.html
Sent from the Clang Developers mailing list archive at Nabble.com.
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
More information about the cfe-dev