[CastXML] Extent of language support?

NIkolai Marchenko enmarantispam at gmail.com
Tue Jul 28 09:12:46 EDT 2015


Hmmm, so that basically means that if I need full c++11 support I will need
to work with clang model directly, ok.

On Tue, Jul 28, 2015 at 4:07 PM, Brad King <brad.king at kitware.com> wrote:

> On 07/27/2015 07:43 PM, NIkolai Marchenko wrote:
> > what it the current status of support for C++11?
> >
> > For example - does it parse variadics, trailing return types?
> > What happens if it meets a macro in a file that is defined somewhere
> else?
>
> CastXML is based on Clang (clang.llvm.org) so its parser is a full
> compiler.
> It operates on an entire translation unit preprocessed just as a compiler
> would (and so needs to be given a .cxx file and not just any .h file).
> Clang supports C++11, so CastXML can parse such translation units as well
> as Clang can.
>
> However, CastXML's output format is currently that of gccxml's as it is
> meant to succeed that tool while requiring little effort to port its
> clients.  The output format does not support C++11 constructs like rvalue
> references.  When operating with -std=c++11, CastXML will parse as C++11
> but only output the C++98 subset of the declarations encountered.
>
> CastXML, like gccxml, doesn't dump uninstantiated templates but will
> output descriptions of any instantiations of templates encountered.
>
> -Brad
>
> _______________________________________________
> CastXML mailing list
> CastXML at public.kitware.com
> http://public.kitware.com/mailman/listinfo/castxml
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/castxml/attachments/20150728/295a452d/attachment.html>


More information about the CastXML mailing list