[cfe-dev] Is ASTPrinter supposed to emit valid C++ code?

Roman Popov via cfe-dev cfe-dev at lists.llvm.org
Fri Sep 29 13:01:31 PDT 2017


Hello,

Is it possible to emit a valid C++ from AST?

I've tried ASTPrinter in Clang-5.0, but it seems to emit some internal
Clang representations. For example for template specialization I got:

template <typename T> struct test<T, int> : sc_core::sc_module {
    typedef test<type-parameter-0-0, int> this_t;
...


This "type-parameter-0-0"  seem to be some Clang specifics.

Thanks,
Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170929/34d1f663/attachment.html>


More information about the cfe-dev mailing list