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
Add command for "documentation fallback" for a class or namespace #10786
Comments
|
@albert-github : I can't, because this is not a problem, it's a feature request. But I will attach a couple of source files in which this feature could be used. See edit of first post. |
Well you managed to add a nice example to the original post that can be used as a starting point to see what is necessary / wanted. I looked at the classes example and here I see that the functions |
With templates - yes and no, because if A becomes MyClass<0> and B becomes MyClass<1>, specialized differently - the respective methods would still need to return MyClass<0>& and MyClass<1>& respectively; and those are two different return types. Even if one managed to phrase them the same way, e.g. via As for using superclasses - that won't help, because then you can't use methods of the subclass, i.e. I want to write something like I was assuming that name + parameters should be enough for referencing in doxygen (i.e. |
Describe the bug
When one:
one often wants to use the documentation from one class/namespace in the other for some cases, and for other cases to pen some different documentation. At the moment, this must be done by
@copydoc
'ing every member (of the class or the namespace), pointing at the corresponding member of the other namespace or class.Expected behavior
I propose that doxygen offer a "documentation fallback" command, usable at class or namespace scope (actually, perhaps also file scope) - and referring to another class or namespace (or file), respectively. Example syntax might be
\\\docfallback bar
.Now, when no documentation at all is not provided for a member of that scope with signature
foo
- doxygen will consider it to have had a'\\\@copydoc bar::foo
command.Example
sources.zip
Classes:
I want the functions in B, which have an exact counterpart in A (bar and quux) to use the documentation of the A methods - without having to
@copydoc
twiceNamespaces:
I want the functions in the
beautiful
namespace to use the same documentation as their counterparts in theugly
namespace.The text was updated successfully, but these errors were encountered: