After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601222 - Include within a block of code causes line numbers to drift and be incorrect
Include within a block of code causes line numbers to drift and be incorrect
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.6.1
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-11-09 08:18 UTC by Lucien Murray-Pitts
Modified: 2009-12-30 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample source that will exhibit this behaviour (3.69 KB, application/x-zip-compressed)
2009-11-09 08:18 UTC, Lucien Murray-Pitts
Details

Description Lucien Murray-Pitts 2009-11-09 08:18:43 UTC
Created attachment 147250 [details]
Sample source that will exhibit this behaviour

Often when large tables are being used its natural to see a random #include in
the middle of some sources.  Doing this with Doxygen will lead to the line
numbers drifting by the number of lines in the included file.

In the code below the include causes the line numbers to slip, this in turn
causes all the call, and/or callee graphs, and any reference line numbers (eg.
"defined at line XX") to become invalid and the DOT package will not
generate/be called to generate the call graphs.

#if 1
        // Include some code
        int bigtable[ 16 ] =
        {
            #include "tabledata.inc"
        };
#else
        int bigtable[ 16 ] = { 0,0,0,0 } ;
#endif
Comment 1 Lucien Murray-Pitts 2009-11-09 08:20:33 UTC
I am using the following setup;
  Doxy 1.6.1 for Windows, under WinXP SP3 - 32bits, Pentium4 Centrino
  Compiled using Vis. Studio Express 2008, cl.exe mainfile.cpp
Comment 2 Dimitri van Heesch 2009-11-10 19:46:11 UTC
Confirmed. Doxygen can already handle such #include's but not when embedded inside a class. Should be fixed in the next subversion update.
Comment 3 Dimitri van Heesch 2009-12-30 13:38:30 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.6.2. Please verify if this is indeed the case and reopen the
bug if you think it is not fixed (include any additional information that you
think can be relevant).