/**************************************************************************** * Copyright (C) 2021 by Doxygen CPP Comment * ** * This file is part of Box. * ** * Code is free software: you can redistribute it and/or modify it * * under the terms of the GNU Lesser General Public License as published * * by the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * ** * Code is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Lesser General Public License for more details. * ** * You should have received a copy of the GNU Lesser General Public * * License along with Code. If not, see <http://www.gnu.org/licenses/>. * ****************************************************************************/ /** * @file doxygen_cpp.h * @author someone * @date 2021.08.01 * @brief doxygen规范的CPP文件注释规范文档,可以换行, * 所有brief * * @details 对该文档的详细说明和解释,可以换行, * 所有详细说明 */ #ifndef a #define a /** * @brief 这是MyClass类的说明 * * @details 详细说明 */ class MyClass { public: /** 简要说明1 */ void fun1(); /** * @brief 简要说明 * @details 详细说明 * 详细说明... * * @param arg1 参数1的说明... * @param arg2 参数2的说明... * @return 返回值的说明... * @see function1 参考(链接function1) * @note 注释... * @attention 注意... * @bug 存在的问题... * @warning 警告... */ int function(int arg1, int arg2); /** * @brief 简要说明MyEnum... * * @details 详细说明MyEnum... */ enum MyEnum { int EVAL1, ///< 后置简要说明EVAL1... int EVAL2 /**< 后置简要说明EVAL2... */ }; protected: int value; ///< 后置简要说明value... }; #endif // a