Grouping overloads in doxygen

前端 未结 2 925
生来不讨喜
生来不讨喜 2021-02-07 14:02

In my library I have a lot of function overloads of the form:

/// \\brief Does thing.
///
/// \\details The thing that is done is very special.
template

        
2条回答
  •  一整个雨季
    2021-02-07 14:37

    You can use @name tag to reach the similar functionality. Take a look at the example, that's easy.

        /**
         * @name Appends data to the container.
         *
         * @param tag Name of the data entry
         * @param value Data value
         */
        //@{
        /**
         * @brief Documentation for this overload
         */
        void append(const std::string & tag, bool value);
    
        /**
         * @brief Documentation for this overload
         */
        void append(const std::string & tag, int8_t value);
    
        void append(const std::string & tag, int16_t value);
        void append(const std::string & tag, int32_t value);
        //@}
    

    It produces the following output:enter image description here

    I hope this will help

提交回复
热议问题