aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/CodeCoverage.cpp
diff options
context:
space:
mode:
authorYing Yi <maggieyi666@gmail.com>2016-09-06 21:41:38 +0000
committerYing Yi <maggieyi666@gmail.com>2016-09-06 21:41:38 +0000
commit24e91bd05fec332b73a991fa1f59160ea1c1e18e (patch)
tree8e65166010889596601e08e24a5592560daaa0d3 /llvm/tools/llvm-cov/CodeCoverage.cpp
parent8a0e3f828a6712cf5098bb53ca082b5f87c7ea75 (diff)
downloadllvm-24e91bd05fec332b73a991fa1f59160ea1c1e18e.zip
llvm-24e91bd05fec332b73a991fa1f59160ea1c1e18e.tar.gz
llvm-24e91bd05fec332b73a991fa1f59160ea1c1e18e.tar.bz2
[llvm-cov] Add the project summary to the text coverage report for each source file.
This patch is a spin-off from https://reviews.llvm.org/D23922. It extends the text view to preserve the same feature as the html view. Differential Revision: https://reviews.llvm.org/D24241 llvm-svn: 280756
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
-rw-r--r--llvm/tools/llvm-cov/CodeCoverage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp
index 00c5470..02309c9 100644
--- a/llvm/tools/llvm-cov/CodeCoverage.cpp
+++ b/llvm/tools/llvm-cov/CodeCoverage.cpp
@@ -669,7 +669,7 @@ int CodeCoverageTool::show(int argc, const char **argv,
// Show files
bool ShowFilenames =
- (SourceFiles.size() != 1) ||
+ (SourceFiles.size() != 1) || ViewOpts.hasOutputDirectory() ||
(ViewOpts.Format == CoverageViewOptions::OutputFormat::HTML);
if (SourceFiles.empty())