-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template parameter declarations repeated #81
Comments
I have the same problem. |
I also have this problem and after some testing I noticed that it only happens with simple template paramters (Constrained or variadic parameters work correctly). I think this is a result of doxygen generating different Take the following template <typename TypeName, class Class, std::integral Integral, class... Variadic>
struct TemplateTest {}; The <templateparamlist>
<param>
<type>typename TypeName</type>
</param>
<param>
<type>class Class</type>
</param>
<param>
<type>std::integral</type>
<declname>Integral</declname>
<defname>Integral</defname>
</param>
<param>
<type>class...</type>
<declname>Variadic</declname>
<defname>Variadic</defname>
</param>
</templateparamlist> As you can see, in the case of |
@r-braun I was looking into whether this is an issue with other doc generators, and nested/variadic templates are generally very finicky with the majority of them. Even a seemingly widely-used workflow like readthedocs+sphinx gets it wrong. What does work, is m.css. I am not nearly familiar enough with Doxygen's XML structure to know what's going on, but there does seem to be some extra handling based on |
@taehyounpark That's the impression I got as well and from what I've seen in the source code here, there's already some massaging done. I created a PR (#95) that fixes the issue for all of my use cases, but I'm also no doxygen specialist so I can't guarantee there aren't some edge cases left. |
As seen here, the declaration of a template parameter class
delayed<Bkr>
receives a repeated declarationtemplate <typename Bkr typename Bkr>
The
xml
output from Doxygen does not contain this, so I'm not sure what (if anything) can be done from the user-side to "guide" this prevent this, or if it would need a fix. Thank you in advance!The text was updated successfully, but these errors were encountered: