Re: [PATCH] handling gcc attributes
Dave Dodge <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <20060115015541.GF8149@basmati> |
On Sat, Jan 14, 2006 at 08:14:12AM -0500, [email protected] 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click