logo       

Doxygen Bug with class defined types as function parameters.: msg#00040

text.doxygen.general

Subject: Doxygen Bug with class defined types as function parameters.

The C++ code below gives a false Doxygen warning.
Using version 1.3-rc1 (it also happens with earlier versions) on both
Windows and Linux with
default Doxyfile generated with "doxygen -g"

The problem seems to occur whenever you use a class defined typedef as a
parameter to a member function.


class MyClass
{
public:
typedef int MyType;
operator MyType& ();
//---- Using this version removes the warning
// operator MyClass::MyType& ();

private:
MyType m_myType;
};

/*
* Doxygen gives warning:
* Warning: member `operator MyClass::MyType &' of class `MyClass'
cannot be found
*/

MyClass::operator MyClass::MyType& ()
{
return m_myType;
}

- Steven Green
http://www.greenius.ltd.uk



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise