-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
183: Improve --show-missing-lines for multiple functions in a single line r=taiki-e a=vmiklos The JSON output we get from llvm-cov has stats of the amount of lines not covered, but does not mention individual uncovered lines, we have to calculate that. We have calculated coverage based on iterating the list of functions, but this did not take into account that when expanding macros, it's normal to have multiple functions on the same line. Fix this problem by not only recording uncovered but also covered lines, and once we have information for all functions, then merging this coverage info into a single list of uncovered lines, which is closer to how llvm-cov itself calculates its own stats. Ideally llvm-cov itself would provide this info and then we can't get it wrong, but at least this is meant to be an incremental improvement. Fixes <#181>. Co-authored-by: Miklos Vajna <[email protected]>
- Loading branch information
Showing
4 changed files
with
711 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.