standardese/cppast

Better to_string for cpp_dependent_type

deadlocklogic opened this issue · 2 comments

Dependent types should be named as: typename dependee::name but in the current implementation only the name appears when calling cppast::to_string.

void write_dependent(code_generator::output& output, const cpp_dependent_type& type)
{
    output << token_seq(type.name());
}

Maybe use the dependee type in this snippet for better naming?
Thnaks.

The libclang parser never generates a cpp_dependent_type actually, so I'm curious why you ran into that issue? Nevertheless, it is now formatted properly.

I made a TypeUtils class which (parses/clones/prints/sanitizes/resolves) cpp_type. So yeah I am stretching the boundaries a bit with this library.