I am documenting a C API that contains structs, many of which contain
anonymous unions. When doxygen generates the UML diagram for these structs,
it includes an entry for the anonymous union with the inscrutable form "@12"
(where 12 is some number). Is there a way to prevent this number from
appearing in the diagram:

E.g:

LEAP_VECTOR
-----------------
+ v
+ x
+ y
+ z
+ @4

This struct is defined as:

/** \ingroup Structs
 * A three element, floating-point vector.
 * @since 3.0.0
 */
typedef struct _LEAP_VECTOR {
  /** You can access the vector members as either an array or individual
float values. */
  union {
    /** The vector as an array. @since 3.0.0 */
    float v[3];
    struct {
      /** The x spatial coordinate. @since 3.0.0 */
      float x;
      /** The y spatial coordinate. @since 3.0.0 */
      float y;
      /** The z spatial coordinate. @since 3.0.0 */
      float z;
    };
  };
} LEAP_VECTOR;

I've tried setting HIDE_UNDOC_MEMBERS to YES, but it doesn't help -- even
for other structs for which the anonymous union doesn't have a doc comment.





--
View this message in context: 
http://doxygen.10944.n7.nabble.com/UML-for-struct-containing-union-tp7737.html
Sent from the Doxygen - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to