[cfe-dev] libclang or libtooling for transpiler
Andrei Damian via cfe-dev
cfe-dev at lists.llvm.org
Sun Jun 2 07:45:17 PDT 2019
Apologies for the *very *extremely late response. These last weeks (and the
next few) are just very busy.
>From what I can tell libtooling + cpp is my best bet. So, I compiled clang
and after a few tries I got a working example on printing all the function
names in a cpp. I think it's a good start.
And I would really like to discuss transpiling with you, Stephen Crane. How
may I contact you?
On Tue, 30 Apr 2019 at 13:40, Jacob Carlborg via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> On 2019-04-29 21:07, Stephen Crane via cfe-dev wrote:
> > We had the exact same question when we started work on C2Rust. We
> > ended up using the libtooling API with C++ to extract the AST and
> > serialize it into Rust.
>
> Oh, I can add that I don't think libtooling existed when I first started
> with DStep.
>
> > We found that the libclang interface was
> > insufficient to extract all information we needed for the transpiler.
> It would be interesting to know more about this.
>
> --
> /Jacob Carlborg
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190602/fd6e879d/attachment.html>
More information about the cfe-dev
mailing list