Hi Aaron,
You might find useful the recent work we have done on stable identifiers for
AST:
now Stmt and Decl classes have a “getID” method,
which returns an identifier stable across different runs (at least on the same
architecture, probably not the same for different ones).
George
> On Nov 2
On 27/11/2018 09:49, Stephen Kelly via cfe-commits wrote:
On 26/11/2018 19:20, Aaron Ballman via cfe-commits wrote:
Once upon a time, there was -ast-print-xml. This -cc1 option was
dropped because it was frequently out of sync with the AST data. It is
right to ask: why would JSON, etc be any dif
On Tue, Nov 27, 2018 at 4:50 AM Stephen Kelly via cfe-commits
wrote:
>
> On 26/11/2018 19:20, Aaron Ballman via cfe-commits wrote:
> > Once upon a time, there was -ast-print-xml. This -cc1 option was
> > dropped because it was frequently out of sync with the AST data. It is
> > right to ask: why w
On 26/11/2018 19:20, Aaron Ballman via cfe-commits wrote:
Once upon a time, there was -ast-print-xml. This -cc1 option was
dropped because it was frequently out of sync with the AST data. It is
right to ask: why would JSON, etc be any different? This is still an
open question, but a goal of this
dumps the AST out to a file in
order to pick the proper AST dumping interface.
~Aaron
>
> -Original Message-
> From: cfe-dev [mailto:cfe-dev-boun...@lists.llvm.org] On Behalf Of Aaron
> Ballman via cfe-dev
> Sent: Monday, November 26, 2018 11:20 AM
> To: cfe-dev ; cfe-commits
>
26, 2018 11:20 AM
To: cfe-dev ; cfe-commits
Cc: Eric Schulte
Subject: [cfe-dev] Dumping AST information to other formats
Clang currently supports various -cc1 options that allow displaying AST
information (-ast-dump, -ast-print, -ast-list, etc), but these options are not
convenient to consume
Clang currently supports various -cc1 options that allow displaying
AST information (-ast-dump, -ast-print, -ast-list, etc), but these
options are not convenient to consume by third-party tools. GrammaTech
has ongoing research efforts where we would like to output some
information from the AST to a