GNOME Bugzilla – Bug 607736
The line after //! within #if - #endif is ignored; C-Code
Last modified: 2010-02-21 12:57:35 UTC
If the special comment //! is used within #if defined (..) regions, then the line following the comment is ignored. Since there are often function calls, the corresponding relations are missing in the XML and html documentation. Here a short test program to reproduce the bug: // main.c: Test file // #define APP_TYPE=BLH void fctA () {}; void fctB () {}; void fctC () {}; void fctD () {}; void fctE () {}; /* FUNCTION ************************************************/ int main(int argc, char* argv[]) { // normal fctA (); // correctly recognized #if defined(APP_TYPE) && (APP_TYPE==BLH) //! @crq _CRQ1129 //! @crq special comment fctB (); // function call missing in doxygen documentation! BUG!!! #endif #if defined(APP_TYPE) && (APP_TYPE==BLH) //! @crq special comment with blank line fctC (); // correctly recognized #endif #if defined(APP_TYPE) && (APP_TYPE==BLH) //! @crq _CRQ1129 fctD (); // function call missing in doxygen documentation! BUG!!! #endif //! @crq _CRQ1129 fctE (); // correctly recognized return 0; }
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.6.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.