GNOME Bugzilla – Bug 686983
Undocumented struct/class when defined inside a macro call
Last modified: 2012-12-26 16:09:20 UTC
A struct/class defined inside a call to a macro won't have its documentation picked up. For example: /** ... */ PACKED( struct A { /** ... */ int x; }); Or even: PACKED( /** ... */ struct A { /** ... */ int x; }); The following configuration I tried didn't help either: ENABLE_PREPROCESSING = YES PREDEFINED = PACKED(type)=type MACRO_EXPANSION = YES One workaround is to manually mark the documentation comments themselves, i.e. via @class, etc, but this is too tedious and error-prone. The concrete source code I'm trying to document is this: - macro: https://github.com/marciof/Eon/blob/master/library/util.h#L207 - struct: https://github.com/marciof/Eon/blob/master/core/architecture/x86/multiboot/Boot_Device.h#L21 This occurs on both Windows 7 64-bit and Kubuntu 10.10 32/64-bit.
Confirmed. Should be fixed in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.3. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.