Skip to content

Warning message line numbers off by 2. (Origin: bugzilla #671240) #4604

@doxygen

Description

@doxygen

status RESOLVED severity minor in component general for ---
Reported in version 1.8.0 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2012-03-03 01:13:42 +0000, Jason C wrote:

Created attachment 208891
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.).

On 2012-03-03 22:06:05 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next subversion update.

On 2012-05-19 12:27:07 +0000, Dimitri van Heesch wrote:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions