]> granicus.if.org Git - llvm/commit
[llvm-cov] Factor out logic to iterate over line coverage stats (NFC)
authorVedant Kumar <vsk@apple.com>
Sat, 14 Oct 2017 02:27:29 +0000 (02:27 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 14 Oct 2017 02:27:29 +0000 (02:27 +0000)
commit5371945eb169bef20d5636934d4305aabfc3917a
treeedd0b3c1a84da6355dbc542de2d0c5d95997a33d
parent1c7136e9baca954d8f28caab977e1a0d7b092841
[llvm-cov] Factor out logic to iterate over line coverage stats (NFC)

There were two copies of the logic needed to construct a line stats
object for each line in a range: this patch brings it down to one. In
the future, this will make it easier for IDE clients to display coverage
in-line in source editors. To do that, we just need to move the new
LineCoverageIterator class to libCoverage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315789 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cov/CoverageSummaryInfo.cpp
tools/llvm-cov/CoverageSummaryInfo.h
tools/llvm-cov/SourceCoverageView.cpp
tools/llvm-cov/SourceCoverageViewHTML.cpp
tools/llvm-cov/SourceCoverageViewText.cpp