mermar | 8 Feb 10:17
Picon
Favicon

documented function `' was not declared or defined bug?


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)
(Continue reading)

Greg Aldridge | 8 Feb 10:50

Re: documented function `' was not declared or definedbug?

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:
    /**
(Continue reading)

Dimitri Van Heesch | 8 Feb 20:17
Picon

Re: documented function `' was not declared or defined bug?

Hi Martin,

I didn't get this warning, but try replacing

void MyClass::myMethod(unsigned myParameter)

with

void MyClass::myMethod(unsigned int myParameter)

so it matches the declaration.

Regards,
  Dimitri

On Feb 8, 2012, at 10:17 , <mermar <at> centrum.cz> <mermar <at> centrum.cz> wrote:

> 
> 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
(Continue reading)


Gmane