tomtom-international / asciidoxy

AsciiDoxy generates API documentation from Doxygen XML output to AsciiDoc.
Apache License 2.0
31 stars 10 forks source link

C++: Incorrect Assciidoc title for structs with `::` in their name #37

Closed JM-deprecated closed 2 years ago

JM-deprecated commented 3 years ago

Hi,

when converting a struct compound, the generated .adoc file only contains the part of the compound name after the last ::.

eg. <compoundname>is_container&lt; std::array&lt; T, N &gt; &gt;</compoundname> results in the Asciidoc section title array< T, N > >.

I suspect that the compound names are being parsed in a way where everything before the :: is considered to be a namespace.

silvester747 commented 2 years ago

I have reproduced the issue in a unit test. The parser that removes the namespace from the full name is indeed too simple. I will switch to using the full type parser for the name.