[cfe-dev] LibTooling for parsing C++ that uses unknown attributes

Manuel Klimek via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 7 01:37:39 PST 2016


+benjamin, who might have good ideas

On Tue, Jan 5, 2016 at 9:26 PM Robert W. Johnstone via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello,
>
> I'm starting an experimental project to generate code to marshal and
> unmarshal C++ data.  The goal would be a tool that would parse the header
> files, and then write the necessary methods.  I started an implementation
> using LibTooling, but found that the custom attributes would not
> available.  Going back to the documentation, this appears to be the correct
> behaviour.
>
> Before I decide that I need a fork of libclang, is there a way to add
> attributes to the compiler when using LibTooling, or to request that
> unknown attributes are kept and present in the AST?
>
> Thank-you,
>
> Robert
>
>
> --
> ----------------------------------------
> Robert W. Johnstone
> In theory, there is no difference between theory and practice.
> In practice, there is.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://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/20160107/9007b9a6/attachment.html>


More information about the cfe-dev mailing list