Re: [Doxygen-users] gcc's "__attribute__" tag
Brought to you by:
dimitri
From: Dimitri v. H. <di...@st...> - 2003-07-14 18:34:48
|
On Sun, Jul 13, 2003 at 07:31:50PM -0500, Timur Tabi wrote: > I'm running doxygen 1.2.15 and it's complaining about some of my function > prototypes that use the "attribute" tag. Here's the doxygen log: > > Parsing file > /esw/fips1/Current/c07/esw/fips1/Current/c0712a_fips1/src/menu/cgi/menucommon.H:171: Warning: member with no name found. > > menutty.H:159 > void tty_out(const char *format, ...) __attribute__((format(printf, 1, 2))); > > I added the following line to my dox.cfg, but it didn't help: > > PREDEFINED += "__attribute__(x)=" > > The odd thing is that these aren't the only lines that have an > __attribute__ tag, but they are the only lines with an > "__attribute__((format(printf, 1, 2)))" tag, so I'm guessing the (printf(1, > 2)) is what's confusing doxygen. > > Does anyone know how I can fix this? Yes, set: MACRO_EXPANSION = YES EXPAND_ONLY_PREDEF = YES as well (you can use "doxygen -d Preprocessor" to debug). Regards, Dimitri |