OSDN Git Service

[llvm-cov] Make report metrics agree with line exec counts, fixes PR34615
authorVedant Kumar <vsk@apple.com>
Tue, 19 Sep 2017 02:00:12 +0000 (02:00 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 19 Sep 2017 02:00:12 +0000 (02:00 +0000)
commit1ef0d5a130b4bafad047b5e94e82de7d214f33d4
tree8decebec2fd05615ea9c5f671072a01bae56d835
parentae83487a4968d47d8f951c9502f430c938a21f8b
[llvm-cov] Make report metrics agree with line exec counts, fixes PR34615

Use the same logic as the line-oriented coverage view to determine the
number of covered lines in a function.

Fixes llvm.org/PR34615.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313604 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
test/tools/llvm-cov/Inputs/highlightedRanges.json
test/tools/llvm-cov/Inputs/lineExecutionCounts.json
test/tools/llvm-cov/Inputs/regionMarkers.json
test/tools/llvm-cov/Inputs/showExpansions.json
test/tools/llvm-cov/showLineExecutionCounts.cpp
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-cov/CoverageFilters.cpp
tools/llvm-cov/CoverageFilters.h
tools/llvm-cov/CoverageReport.cpp
tools/llvm-cov/CoverageSummaryInfo.cpp
tools/llvm-cov/CoverageSummaryInfo.h
tools/llvm-cov/SourceCoverageView.cpp
tools/llvm-cov/SourceCoverageView.h