Dear Doxygen users and developers,

I wonder if it would be possible to create a custom Doxygen
tag marking or anchoring arbitrary code snippets, and to create
a page with links to functions/classes/code blocks/files where the
tag was set. Basically that is the functionality of \xrefitem, but
I'd like to  have a more flexibel way in the sense that in the
generated page there could be sections, paragraphs etc.

Let me explain with a small example: The tag should have two
parameters 'object' and 'use case' where the link page groups
together tasks/use cases for certain objects in a section or
paragraph. Say we had functions using/modifying 2 objects:
 
// forward declarations
class Object1;
class Object2;

// 1st function
void foo(Object1& o1, Object2& o2)
{
  //! @tag(Object1, Clone)
  Clone(o1)

  //! @tag(Object1, Modify)
  Modify(o1)

  //! @tag(Object2, Clone)
  Clone(o2)
}

// 2nd function
void bar(Object1& o1, Object2& o2)
{
  //! @tag(Object2, Clone)
  Clone(o2)

  //! @tag(Object1, Modify)
  Modify(o1)
}


This should generate for page with a section with use case
occurencies or tasks for each object a la

Object1:
  Clone:
    - foo
  Modify:
    - foo
    - bar

Object2:
  Clone 
    - bar
    - foo

The sense in such a list is that we are reviewing a project with a
large code basis with much redundancy and would like to be able to
generate lists/views which give us a better overview over the code.

Hopefully I explained my problem well enough. I am aware there where
similar topics on the list but none gave me a fine solution for my
request.

Thanks you all for any hints/advices/discussion.
Best,
Dan 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to