Re: [Doxygen-develop] [PATCH] handling gcc attributes
Brought to you by:
dimitri
From: Dave D. <do...@do...> - 2006-01-15 01:54:39
|
On Sat, Jan 14, 2006 at 08:14:12AM -0500, de...@vt... wrote: > The following patch allows doxygen to process C code which contains GCC > attributes. Just FYI, a workaround for this is to make attributes conditionally disappear in the preprocessor. I usually do that anyway since I want to avoid tying code to gcc: #if defined ( __GNUC__ ) #define FUNC_MALLOC() __attribute__((__malloc__)) #else #define FUNC_MALLOC() #endif extern void * foo(int,int) FUNC_MALLOC(); Doxygen still doesn't like seeing that FUNC_MALLOC() there. That's fixed by telling the Doxygen config to remove it during preprocessing: PREDEFINED = \ "FUNC_MALLOC()=" -Dave Dodge |