OSDN Git Service

[llvm-cov] Fix issues with segment highlighting in the html view
authorVedant Kumar <vsk@apple.com>
Thu, 8 Sep 2016 19:18:23 +0000 (19:18 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 8 Sep 2016 19:18:23 +0000 (19:18 +0000)
commit111f4fbf9a5b343d1c59c1412feffb1fdd5a253f
tree5566da70856c67949a33b0f8b96ee0e85c458f75
parent99a1cd6e48b495cd34e9ffc94d0a1e1d2b2256da
[llvm-cov] Fix issues with segment highlighting in the html view

The text and html coverage views take different approaches to emitting
highlighted regions. That's because this problem is easier in the text
view: there's no need to worry about escaping text or adding tooltip
content to a highlighted snippet.

Unfortunately, the html view didn't get region highlighting quite right.

This patch fixes the situation, bringing parity between the two views.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280981 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/showHighlightedRanges.cpp
test/tools/llvm-cov/showLineExecutionCounts.cpp
tools/llvm-cov/SourceCoverageViewHTML.cpp