[llvm-cov] Add the project summary to each source file coverage report.
This patch includes the following changes: - Included header "Code coverage report" and include the date that the report was created. - Included title (as specified in a command line option, (i.e llvm-cov -project-title="Simple Test") - In the summary, list the elf files that the source code file has contributed to. - Used column heading for "Line No.", "Count No.", Source". Differential Revision: https://reviews.llvm.org/D23345 llvm-svn: 279628
This commit is contained in:
@@ -38,7 +38,7 @@ class SourceCoverageViewHTML : public SourceCoverageView {
|
||||
|
||||
void renderViewFooter(raw_ostream &OS) override;
|
||||
|
||||
void renderSourceName(raw_ostream &OS) override;
|
||||
void renderSourceName(raw_ostream &OS, bool WholeFile) override;
|
||||
|
||||
void renderLinePrefix(raw_ostream &OS, unsigned ViewDepth) override;
|
||||
|
||||
@@ -70,12 +70,17 @@ class SourceCoverageViewHTML : public SourceCoverageView {
|
||||
void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
|
||||
unsigned ViewDepth) override;
|
||||
|
||||
void renderCellInTitle(raw_ostream &OS, StringRef CellText) override;
|
||||
|
||||
void renderTableHeader(raw_ostream &OS, unsigned IndentLevel) override;
|
||||
|
||||
public:
|
||||
SourceCoverageViewHTML(StringRef SourceName, const MemoryBuffer &File,
|
||||
const CoverageViewOptions &Options,
|
||||
coverage::CoverageData &&CoverageInfo)
|
||||
: SourceCoverageView(SourceName, File, Options, std::move(CoverageInfo)) {
|
||||
}
|
||||
coverage::CoverageData &&CoverageInfo,
|
||||
bool FunctionView)
|
||||
: SourceCoverageView(SourceName, File, Options, std::move(CoverageInfo),
|
||||
FunctionView) {}
|
||||
};
|
||||
|
||||
} // namespace llvm
|
||||
|
||||
Reference in New Issue
Block a user