aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorYing Yi <maggieyi666@gmail.com>2016-09-06 19:31:18 +0000
committerYing Yi <maggieyi666@gmail.com>2016-09-06 19:31:18 +0000
commitd36b47c481c213f5b77fd2755b800ff9604866c0 (patch)
tree4a4fafc1e30100930c023e61c35f132bff40f15d /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent19eeb37b8c23fb75b7777eb3821fa706b5d0aade (diff)
downloadllvm-d36b47c481c213f5b77fd2755b800ff9604866c0.zip
llvm-d36b47c481c213f5b77fd2755b800ff9604866c0.tar.gz
llvm-d36b47c481c213f5b77fd2755b800ff9604866c0.tar.bz2
[llvm-cov] Add the "Go to first unexecuted line" feature.
This patch provides easy navigation to find the zero count lines, especially useful when the source file is very large. Differential Revision: https://reviews.llvm.org/D23277 llvm-svn: 280739
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
-rw-r--r--llvm/tools/llvm-cov/SourceCoverageViewText.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
index 2f568b2..52e405e 100644
--- a/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
+++ b/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
@@ -63,7 +63,8 @@ void SourceCoverageViewText::renderViewHeader(raw_ostream &) {}
void SourceCoverageViewText::renderViewFooter(raw_ostream &) {}
-void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile) {
+void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile,
+ unsigned FirstUncoveredLineNo) {
getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
<< ":\n";
if (WholeFile) {