最近,我们在使用MACROS收集时间时添加了一些代码,以贴标签。 现在,Doxygen没有适当记录折旧功能。
#if defined(__GNUC__)
#define DEPRECATED(func) func __attribute__((deprecated)) /**< mark a function as deprecated in gcc. */
#elif defined(_MSC_VER)
#define DEPRECATED(func) __declspec(deprecated) func /**< mark a function as deprecated in msvc. */
#endif
注是该员额的宏观版本,即实际的宏观方法确实是编篡者版本检查等。
Later the macros are used around a function to let the compiler know that the function has been deprecated so a compiler warning will be issued.
/**
* myMethod() is deprecated.
*/
DEPRECATED(
/**
* @deprecated
* Description of deprecated function
*
* @param var this is a parameter
*
* @return this is returned
*/
int myMethod(int var)
);
The problem is that Doxygen wants to show the documentation for DEPRECATED not for myMethod(int var).
是否有任何人知道如何用Doxygen来记录我的血友,而不是宏观的DEPRECA。