]> granicus.if.org Git - llvm/commit
[llvm-cov] Suppress sub-line highlights in simple cases
authorVedant Kumar <vsk@apple.com>
Wed, 18 Oct 2017 18:52:29 +0000 (18:52 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 18 Oct 2017 18:52:29 +0000 (18:52 +0000)
commit4a5c81f50fa0d545a499b1fa12e7feefbf6f9976
treed5ee9d6b5de2fb30509df96535d548f5430c5bf6
parentd35bb38d3b5e4ddd526132eff4a71061703c63a1
[llvm-cov] Suppress sub-line highlights in simple cases

llvm-cov tends to highlight too many regions because its policy is to
highlight all region entry segments. This can look confusing to users:
not all region entry segments are interesting and deserve highlighting.
Emitting these highlights only when the region count differs from the
line count is a more user-friendly policy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316109 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/deferred-region.cpp
test/tools/llvm-cov/showRegionMarkers.cpp
tools/llvm-cov/SourceCoverageViewHTML.cpp
tools/llvm-cov/SourceCoverageViewText.cpp