Re: documented function `' was not declared or definedbug?
Greg Aldridge <Greg.Aldridge <at> domino-uk.com>
2012-02-08 09:50:08 GMT
Try adding
/** @file */
to the top of your header file.
Greg.
-----Original Message-----
From: mermar <at> centrum.cz [mailto:mermar <at> centrum.cz]
Sent: 08 February 2012 09:17
To: doxygen-users <at> lists.sourceforge.net
Subject: [Doxygen-users] documented function `' was not declared or
definedbug?
Hi,
I'd like to ask if following doxygen behaviour is a bug?
Let's have two files myclass.h and myclass.cc.
--------------------
#ifndef MYCLASS_INCLUDED
#define MYCLASS_INCLUDED ///< Multiple inclusion protection.
/**
* @brief Documentation of class.
*/
class MyClass
{
public:
/**
* @brief Documentation of method.
* @param myParameter Documentation of parameter.
*/
void myMethod(unsigned int);
private:
unsigned myProperty; ///< Documentation of property.
};
#endif // MYCLASS_INCLUDED
--------------------
#include "myclass.h"
void MyClass::myMethod(unsigned myParameter)
{
myProperty = myParameter;
}
int main()
{
MyClass myClass;
myClass.myMethod(1);
}
--------------------
doxygen --version
1.7.6.1
doxygen -g
Only one edit of Doxyfile: EXTRACT_ALL = YES
doxygen
...
/home/mermar/test/myclass.cc:4: warning: documented function `void
MyClass::myMethod' was not declared or defined. ...
The code seems OK. In HTML output, there is no class, no method. Is
there something wrong with my documentation?
Best regards
Martin
------------------------------------------------------------------------
------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Doxygen-users mailing list
Doxygen-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users
****************************************************
Visit our website at http://www.domino-printing.com
****************************************************
This Email and any files transmitted with it are intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged material. Any reading, redistribution,
disclosure or other use of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you are not the intended recipient please
contact the sender immediately and delete the material from your computer.
E-mail may be susceptible to data corruption, interception, viruses and unauthorised amendment and
Domino UK Limited does not accept liability for any such corruption, interception, viruses or amendment
or their consequences.
****************************************************
Domino UK Limited. Registered in England. Registered Number:1750201. Registered Office Address:
Trafalgar Way, Bar Hill, Cambridge, CB23 8TU.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d