]> granicus.if.org Git - llvm/commitdiff
[llvm-cov] Emit a link to some documentation
authorVedant Kumar <vsk@apple.com>
Mon, 19 Sep 2016 02:15:59 +0000 (02:15 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 19 Sep 2016 02:15:59 +0000 (02:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281883 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/SourceCoverageViewHTML.cpp

index cb9760ad7c9fcf2e91a2bf7dc007b92126392952..5a984cf2eb94e4fecaf10e1e3376fdfb9a84c52d 100644 (file)
@@ -374,6 +374,13 @@ Error CoveragePrinterHTML::createIndexFile(
   if (Opts.hasCreatedTime())
     OSRef << tag(CreatedTimeTag, escape(Opts.CreatedTimeStr, Opts));
 
+  // Emit a link to some documentation.
+  OSRef << tag("p", "Click " +
+                        a("http://clang.llvm.org/docs/"
+                          "SourceBasedCodeCoverage.html#interpreting-reports",
+                          "here") +
+                        " for information about interpreting this report.");
+
   // Emit a table containing links to reports for each file in the covmapping.
   OSRef << BeginCenteredDiv << BeginTable;
   emitColumnLabelsForIndex(OSRef);