[Doxygen-develop] copy only used params with copydoc
Brought to you by:
dimitri
|
From: Philipp E. <phi...@ke...> - 2016-06-21 09:08:51
|
Hello,
I am looking for a way to extend copydoc to only copy descriptions for
parameter, which are present in the function where the documentation is
copied to. So instead of a "argument .. of command @param is not found
in the argument list of .." warning I'd like to remove this specific
param documentation.
Alternatively, I would be happy with an option to remove a param
statement from the documentation. Something along the line:
\copydoc Foo::bar(bar1, bar2)
\rmparam bar2
I tried hijacking parseCopyDoc() in docparser.cpp, but this doesn't look
promising.
At the end it should be something like this:
while(..)
{
tk = copyDocString.nextToken();
if( !checkArgumentName(tk, tk.isParam()) )
//check argument name was modified to return false in case of the
above error.
toBeRemovedTokens.add(tk);
}
// remove tokens from copyDocString
Do you have any hints, how to best achieve this? Or could you point me
to a good place in the code for this?
Cheers,
Philipp
|