[cfe-dev] libclang or libtooling for transpiler

Jacob Carlborg via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 30 03:39:55 PDT 2019


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



More information about the cfe-dev mailing list