pygccxml icon indicating copy to clipboard operation
pygccxml copied to clipboard

Type name inconsistencies

Open ombre5733 opened this issue 7 years ago • 1 comments

I'm right now playing around with templates and noticed a few inconsistencies in the naming. For example:

>>> type(x)
<class 'pygccxml.declarations.class_declaration.class_declaration_t'>
>>> x.decl_string
'::A::T<A::B::D, bool>'
>>> x.partial_decl_string
'::A::T< A::B::D, bool >'

So the partial_decl_string has spaces after < and before > where the decl_string does not.

Even more severe for me is that the decl string for all types returns a fully qualified name starting with :: but the template arguments do not. In the example above, I wished that the first template argument would be rendered as ::A::B::D and not only A::B::D.

Is it possible to harmonize the output?

ombre5733 avatar Apr 15 '17 18:04 ombre5733