OSDN Git Service

[llvm-cov] Use the native path in the coverage report.
authorYing Yi <maggieyi666@gmail.com>
Tue, 30 Aug 2016 07:01:37 +0000 (07:01 +0000)
committerYing Yi <maggieyi666@gmail.com>
Tue, 30 Aug 2016 07:01:37 +0000 (07:01 +0000)
commit696fea911dbc461f10062da76e29bc1966ac12f9
tree7825d21f9ba8c7c99c91476b991a39ef147aa99e
parentba878321682c3c4ae70ac20f357c847632d33ce9
[llvm-cov] Use the native path in the coverage report.

The coverage reports contain the source or binary file paths. On Windows,
the file path might contain the seperators of both '/' and '\'. This patch
uses the native path in the coverage reports. For example, on Windows,
all '/' are converted to '\'.

Differential Revision: https://reviews.llvm.org/D23922

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280061 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/Inputs/native_separators.covmapping [new file with mode: 0644]
test/tools/llvm-cov/double_dots.c
test/tools/llvm-cov/native_separators.c [new file with mode: 0644]
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-cov/SourceCoverageView.cpp
tools/llvm-cov/SourceCoverageViewHTML.cpp