<div dir="ltr"><div>Hello,</div><div><br></div><div>Is it possible to emit a valid C++ from AST?</div><div><br></div><div>I've tried ASTPrinter in Clang-5.0, but it seems to emit some internal Clang representations. For example for template specialization I got:</div><div><br></div><div><div>template <typename T> struct test<T, int> : sc_core::sc_module {</div><div>    typedef test<type-parameter-0-0, int> this_t; </div></div><div>...</div><div><br></div><div><br></div><div>This "type-parameter-0-0"  seem to be some Clang specifics.</div><div><br></div><div>Thanks,</div><div>Roman</div></div>