You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain lcov files generated by llvm contain coverage information for the line after the final newline character.
For these lcov files, genhtml will report the following error:
genhtml: ERROR: (range) /some/path/supp.h contains only 2 lines but coverage data refers to line 3
Would it make sense to allow the last empty line to contain coverage information and only show this error message if more than the last line contains coverage information?
E.g. ignore the error for n=1 or have it behave as a warning instead of an error?
Would it make sense to allow the last empty line to contain coverage information and only show this error message if more than the last line contains coverage information?
Could be done - but what issues do you see with the current solution, which requires you to either:
add the --keep-going flag, or
add --ignore-errors range, or
add --filter range?
Yet another thing you could do, is to write your own annotation callback which had the desired behaviour.
Wrong/inconsistent data is wrong and/or inconsistent - regardless of whether it is just one line, or many.
Certain lcov files generated by llvm contain coverage information for the line after the final newline character.
For these lcov files,
genhtml
will report the following error:Would it make sense to allow the last empty line to contain coverage information and only show this error message if more than the last line contains coverage information?
E.g. ignore the error for n=1 or have it behave as a warning instead of an error?
Reproduce
main.c
:supp.h
:Run
Alternatively, this is the lcov file:
main.lcov
:Additional Information
On Kubuntu 24.10.a
The text was updated successfully, but these errors were encountered: