GNOME Bugzilla – Bug 601222
Include within a block of code causes line numbers to drift and be incorrect
Last modified: 2009-12-30 13:38:30 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
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
Confirmed. Doxygen can already handle such #include's but not when embedded inside a class. 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.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).