You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created attachment 248616
Patch for "Out-of-line docs for class template specialisations failing"
When documenting a class template specialisation out of line, the template arguments are interpreted as the second argument, i.e. as the header-file argument. Example of the problem:
// a.cxx
template struct A { };
/// \brief Correctly documented specialisation
template<> struct A { };
template<> struct A { };
/** \struct A
\brief Some class template
\tparam T Name of the type
*/
/** \struct A
\brief Non-working specialisation
*/
Use these commands to generate a default Doxyfile and to run it:
$ doxygen -g
$ doxygen
[...]
[a.cxx]:15: warning: the name `int' supplied as the argument of the [\class] command is not an input file
[...]
[a.cxx]:8: warning: Compound A< int > is not documented.
[...]
The attached patch fixes the problem for me, but it has two problems:
It breaks old (potentially undesired) functionality: \class A<a.h> (without space) was allowed before but fails to work now
The QRegExp cleanup is probably not ideal. There must be a better function to call to get the canonical class name.
On 2013-08-23 13:36:17 +0000, Dimitri van Heesch wrote:
Thanks, I'll include your patch in the next git update.
The cleanup function you were looking for is called removeRedundantWhiteSpace()
On 2013-08-23 15:04:18 +0000, Dimitri van Heesch wrote:
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.
The text was updated successfully, but these errors were encountered:
status RESOLVED severity normal in component general for ---
Reported in version 1.8.4-GIT on platform Other
Assigned to: Dimitri van Heesch
Original attachment names and IDs:
On 2013-07-08 14:10:57 +0000, o.mandel@menlosystems.com wrote:
On 2013-08-23 13:36:17 +0000, Dimitri van Heesch wrote:
On 2013-08-23 15:04:18 +0000, Dimitri van Heesch wrote:
The text was updated successfully, but these errors were encountered: