C++ Can';类方法的t文档参数不一致

C++ Can';类方法的t文档参数不一致,c++,doxygen,C++,Doxygen,以以下格式编写文档后: /*! \class Bishop * \brief Child class of Figure representing Bishop. * * \fn Bishop::Bishop() * \brief Defualt constructor. * \param [in] color Which player owns this chess piece. * * \fn virtual bool Bishop::CanMoveTo(const

以以下格式编写文档后:

/*! \class Bishop
 *  \brief Child class of Figure representing Bishop.
 *
 *  \fn Bishop::Bishop()
 *  \brief Defualt constructor.
 *  \param [in] color Which player owns this chess piece.
 *
 *  \fn virtual bool Bishop::CanMoveTo(const Board * board, int x, int y) const
 *  \brief Whether currently selected chess piece can move to coordinates given in parameters.
 *  \param[in] board Chess board figure belongs to.
 *  \param[in] x X coordinate to move to.
 *  \param[in] y Y coordinate to move to. 
 *  \return True if such move is possible, else false.
 *
 *  \fn virtual string Bishop::Description() const
 *  \brief Name of chess piece.
 *  \return "bishop".
 */

class Bishop : public Figure
{
    public:
        Bishop(color_t color);
        virtual bool CanMoveTo(const Board * board, int x, int y) const;
        virtual std::string Description() const;
};
我从doxygen获得以下错误:

bishop.h:14: warning: The following parameters of Bishop::CanMoveTo(const Board *board, int x, int y) const are not documented:
  parameter 'board'

我在不同的类中使用了相同的参数
constboard*Board
,生成的文档没有任何问题。我在这里遗漏了什么吗?

当我将其作为第三个参数(而不是第一个)记录时,它会起作用。奇怪,抱歉我猜不出来。我删除它是为了不让任何人感到困惑,因为你在你的问题中改变了那部分(所以看起来不相关)。@Oguk没关系。我真的不需要再解决这个问题了,但我认为这只是Doxygen中的一个bug。