[Doxygen-users] Re: Doxygen-users digest, Vol 1 #231 - 4 msgs
Brought to you by:
dimitri
From: Jaap S. <s98...@ho...> - 2002-01-01 00:48:21
|
Hi, thanks for all your help on the Parameter question. Dimitri: I'll try to make a simple example with only one source file and mail it to you tomorrow. And you were also right about the function not being a real prototype. Ofcourse, I only forgot the parameter type (int in your case), in the code they are there ofcourse :). Thanks again regards, Jape >Subject: Re: [Doxygen-users] Question on function-parameters >documentation.. > >On Sun, Dec 30, 2001 at 08:43:21PM +0100, Jaap Suter wrote: > > Hello, > > > > I'm new on the list and I've only been working with Doxygen for four >days > > now. I've searched the documentation and the online mail-archives but > > coulnd't find any help on this one... > > > > What is the difference between: > > > > /*! > > \brief Some function > > \param x Argument X > > */ > > void Function( x ) {} > > > > and > > > > /*! > > \brief Some function > > */ > > void Function( > > x //!< Argument X > > ) > > {} > > > > Basically, what is the difference between documenting the parameter in >the > > source-comment, or directly after the declaration of the argument? > >There should be no difference in the output (if there is, please send >a bug report). It is just a matter of taste how you comment the input. >Both styles have their pros and cons. > > > I'd rather use the latter, cause it saves me typing the argument-name >twice. > > However, when I use it all sorts of things dissappear in my generated > > documentation. > > > > With the functions that use the \param method I get the brief comment >below > > it with a 'more...' behind it. With the other method I don't get that. >And > > also the detailed information just seems to be ignored with the latter > > method. Very confusing. > >The confusion is caused by Function not being a real prototype. If you use > >/*! > \brief Some function >*/ >void Function( > int x //<! Argument x > ) >{ >} > >then the result should be the same for both cases. Note the "int". > >Regards, > Dimitri > > > >--__--__-- > >_______________________________________________ >Doxygen-users mailing list >Dox...@li... >https://lists.sourceforge.net/lists/listinfo/doxygen-users > > >End of Doxygen-users Digest _________________________________________________________________ Download MSN Explorer gratis van http://explorer.msn.nl/intl.asp. |