Doxygen messes up with PRINTF_ATTRIBUTES macro

Andreas Schneider <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
Hi,

I've created API documentation for talloc.samba.org. Doxygen has a problem 
correctly creating documentation for a function which has a printf attribute 
checking at the end using a macro.

#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))                                                                               
#else                                                                                                                                                        
#define PRINTF_ATTRIBUTE(a1, a2)                                                                                                                             
#endif                                                                                                                                                       
#endif

void *talloc_init(const char *fmt, ...) PRINTF_ATTRIBUTE(1,2); 

It adds the return value of this function to the output of the next.

void * 	talloc_init (const char *fmt,...) PRINTF_ATTRIBUTE(1
 	Create a new top level talloc context.

void *int 	talloc_free (void *ptr)
 	Free a chunk of talloc memory. 


See http://talloc.samba.org/talloc/doc/html/group__talloc.html

I can work around the problem using #ifdef DOXYGEN but I think it should be 
fixed in doxygen.


Cheers,


	-- andreas

-- 
cybernetic synapses - http://www.cynapses.org/

------------------------------------------------------------------------------

_______________________________________________
Doxygen-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-develop
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (GNU/Linux)

iEYEABECAAYFAkvj0A0ACgkQf94+j/M+P8aUHACdG+fxn8H2WnWQ+AuV1EWzL1Dc
wcYAn1ouxTbBwQu/Gw3brl6dXm8X859i
=f/4c
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.