mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[llvm-cov] Make a method name more accurate (NFC)
llvm-svn: 281581
This commit is contained in:
parent
cf1ccdc183
commit
0836fccea4
@ -169,7 +169,7 @@ void SourceCoverageView::addInstantiation(
|
||||
void SourceCoverageView::print(raw_ostream &OS, bool WholeFile,
|
||||
bool ShowSourceName, unsigned ViewDepth) {
|
||||
if (WholeFile && getOptions().hasOutputDirectory())
|
||||
renderCellInTitle(OS, "Coverage Report");
|
||||
renderTitle(OS, "Coverage Report");
|
||||
|
||||
renderViewHeader(OS);
|
||||
|
||||
|
@ -240,9 +240,9 @@ protected:
|
||||
virtual void renderInstantiationView(raw_ostream &OS, InstantiationView &ISV,
|
||||
unsigned ViewDepth) = 0;
|
||||
|
||||
/// \brief Render the project title, the report title \p CellText and the
|
||||
/// created time for the view.
|
||||
virtual void renderCellInTitle(raw_ostream &OS, StringRef CellText) = 0;
|
||||
/// \brief Render \p Title, a project title if one is available, and the
|
||||
/// created time.
|
||||
virtual void renderTitle(raw_ostream &OS, StringRef CellText) = 0;
|
||||
|
||||
/// \brief Render the table header for a given source file.
|
||||
virtual void renderTableHeader(raw_ostream &OS, unsigned FirstUncoveredLineNo,
|
||||
|
@ -588,11 +588,10 @@ void SourceCoverageViewHTML::renderInstantiationView(raw_ostream &OS,
|
||||
OS << EndExpansionDiv;
|
||||
}
|
||||
|
||||
void SourceCoverageViewHTML::renderCellInTitle(raw_ostream &OS,
|
||||
StringRef CellText) {
|
||||
void SourceCoverageViewHTML::renderTitle(raw_ostream &OS, StringRef Title) {
|
||||
if (getOptions().hasProjectTitle())
|
||||
OS << tag(ProjectTitleTag, escape(getOptions().ProjectTitle, getOptions()));
|
||||
OS << tag(ReportTitleTag, escape(CellText, getOptions()));
|
||||
OS << tag(ReportTitleTag, escape(Title, getOptions()));
|
||||
if (getOptions().hasCreatedTime())
|
||||
OS << tag(CreatedTimeTag,
|
||||
escape(getOptions().CreatedTimeStr, getOptions()));
|
||||
|
@ -78,7 +78,7 @@ class SourceCoverageViewHTML : public SourceCoverageView {
|
||||
void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
|
||||
unsigned ViewDepth) override;
|
||||
|
||||
void renderCellInTitle(raw_ostream &OS, StringRef CellText) override;
|
||||
void renderTitle(raw_ostream &OS, StringRef Title) override;
|
||||
|
||||
void renderTableHeader(raw_ostream &OS, unsigned FirstUncoveredLineNo,
|
||||
unsigned IndentLevel) override;
|
||||
|
@ -218,13 +218,12 @@ void SourceCoverageViewText::renderInstantiationView(raw_ostream &OS,
|
||||
ISV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/true, ViewDepth);
|
||||
}
|
||||
|
||||
void SourceCoverageViewText::renderCellInTitle(raw_ostream &OS,
|
||||
StringRef CellText) {
|
||||
void SourceCoverageViewText::renderTitle(raw_ostream &OS, StringRef Title) {
|
||||
if (getOptions().hasProjectTitle())
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN)
|
||||
<< getOptions().ProjectTitle << "\n";
|
||||
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << CellText << "\n";
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN) << Title << "\n";
|
||||
|
||||
if (getOptions().hasCreatedTime())
|
||||
getOptions().colored_ostream(OS, raw_ostream::CYAN)
|
||||
|
@ -71,7 +71,7 @@ class SourceCoverageViewText : public SourceCoverageView {
|
||||
void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
|
||||
unsigned ViewDepth) override;
|
||||
|
||||
void renderCellInTitle(raw_ostream &OS, StringRef CellText) override;
|
||||
void renderTitle(raw_ostream &OS, StringRef Title) override;
|
||||
|
||||
void renderTableHeader(raw_ostream &OS, unsigned FirstUncoveredLineNo,
|
||||
unsigned IndentLevel) override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user