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 671240 - Warning message line numbers off by 2.
Warning message line numbers off by 2.
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.0
Other Linux
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-03-03 01:13 UTC by Jason C
Modified: 2012-05-19 12:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test input. (105 bytes, application/octet-stream)
2012-03-03 01:13 UTC, Jason C
Details

Description Jason C 2012-03-03 01:13:42 UTC
Created attachment 208891 [details]
Test input.

Line numbers in warning messages are 2 less than the actual line number in the file. In the attached example file, the offending lines are 9 and 10. Doxygen produces the following output:

mainpage.dox:7: warning: expected whitespace after p command
mainpage.dox:8: warning: unable to resolve reference to `nonexistent' for \ref command

Note that the line numbers are 7 and 8.

The offset is always -2 and does not seem to depend on the nature of preceding content in the file (e.g. blank lines, other comment blocks, other tags, etc.).
Comment 1 Dimitri van Heesch 2012-03-03 22:06:05 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 2 Dimitri van Heesch 2012-05-19 12:27:07 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1. 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.