Hi Maxime.


“- the \cond \endcond can't remove line of code from the inline sources
(see my last post)”



It does for me, it just seems to be buggy.



With v 1.8.3.1 it works fine for template function overload definitions,
but not for function-like macros (I have not tried it for any other code)



With 1.8.3.1-2013-04-09 the cond part works fine for macros too, but the
endcond part don’t, so that all macros in the file after the cond will get
excluded from doc, not only the ones before the endcond. However macros
before the cond part still show up.



Looks like the old

#ifdef DOXYGEN_IGNORE

// code

#endif

approach will have to do for some code snippets currently.



Kind regards,
Stefan.

*From:* Maxime Thiébaut [mailto:maxime.thieb...@gmail.com]
*Sent:* Mittwoch, 17. April 2013 16:23
*To:* doxygen-users@lists.sourceforge.net
*Subject:* Re: [Doxygen-users] how to ignore some code fragment in inline
sources



Hi,



here some other informations :

- my configuration is windows XP 32 bits (i also tried with Windows 7 64
bits).

- the \cond \endcond work fine to remove doxygen commands from the
documentation

- the \cond \endcond can't remove line of code from the inline sources (see
my last post)



Thank you for your help, and thank you for that great tool !!



Maxime





2013/4/16 Maxime Thiébaut <maxime.thieb...@gmail.com>

In fact, i want to exclude some part of the code, but not the whole code of
a specific function.



Remembering my example, i want the documentation give this "inline code" :



/* code */

int x = a+b;



return(x);

Is doxygen able to do that ? Does somebody have some configuration file
that can deal with that ?



Thank you !!!







2013/4/16 Maxime Thiébaut <maxime.thieb...@gmail.com>

Hi,



thank you Allen for you quick answer.



I already tried to use the \cond and \endcode but it doesn't remove the
"dummy" code from the documentation (in the inline sources).



Is there any special configuration ? (INTERNAL_DOC is already set to NO).



Thank you for your answer



Maxime



2013/4/15 Allen Winter <win...@kde.org>

You might consider the @cond command.

For example
//@cond DUMMY
<code goes here>
//@endcond

so unless you define DUMMY to Doxygen, that code block will be ignored.


On Monday 15 April 2013 10:35:00 PM Maxime Thiébaut wrote:
> hi,
>
> i would like to ignore some code fragment in inline sources (option
> INLINE_SOURCE = TRUE), but i don't know how to do that.
>
> here is some example, where i don't want to include the "dummy" code in
the
> documentation :
>
> int func1(int a, int b)
> {
>
> /** brief description
>
> * detailed description
>
> * parameters description (in / out)
>
> */
>
>
> /* code */
>
> int x = a+b;
>
>
> /* dummy code not to to include in inline sources */
>
> printf("debug: %d", x);
>
>
> return(x);
>
> }
>
>
> Thank you in advance for your help !!
>
> Maxime

-- 
Exit Games | www.exitgames.com | @exitgames | +49 40 413 596 0

Executives Christof Wegmann CTO, Wim de Smet CFO
Trade Registry / Amtsgericht Hamburg, Germany HRB 85991

++ Get Photon Server 3.0 Final: http://j.mp/GetPhoton3
++ Photon Cloud Unity Networking Free Trial + Tutorial: http://j.mp/punfree
++ Follow http://twitter.com/exitgames for Photon announcements
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to