Lines Matching refs:OS
45 void render(raw_ostream &OS) const;
48 raw_ostream &operator<<(raw_ostream &OS, const Column &Value) { in operator <<() argument
49 Value.render(OS); in operator <<()
50 return OS; in operator <<()
54 void Column::render(raw_ostream &OS) const { in render()
57 OS.indent(Width - Str.size()); in render()
58 OS << Str; in render()
61 OS << Str; in render()
62 OS.indent(Width - Str.size()); in render()
68 OS << Str; in render()
71 OS << Str.substr(0, Width); in render()
74 OS << "..." << Str.substr(Str.size() - Width + 3); in render()
77 OS << Str.substr(0, Width - 3) << "..."; in render()
107 static void renderDivider(T (&Columns)[N], raw_ostream &OS) { in renderDivider() argument
112 OS << '-'; in renderDivider()
125 void CoverageReport::render(const FileCoverageSummary &File, raw_ostream &OS) { in render() argument
126 OS << column(File.Name, FileReportColumns[0], Column::NoTrim) in render()
129 Options.colored_ostream(OS, File.RegionCoverage.isFullyCovered() in render()
133 Options.colored_ostream(OS, in render()
137 OS << format("%*u", FileReportColumns[4], in render()
140 OS, determineCoveragePercentageColor(File.FunctionCoverage)) in render()
143 OS << "\n"; in render()
147 raw_ostream &OS) { in render() argument
148 OS << column(Function.Name, FunctionReportColumns[0], Column::RightTrim) in render()
151 Options.colored_ostream(OS, Function.RegionCoverage.isFullyCovered() in render()
157 OS, determineCoveragePercentageColor(Function.RegionCoverage)) in render()
160 OS << format("%*u", FunctionReportColumns[4], in render()
162 Options.colored_ostream(OS, Function.LineCoverage.isFullyCovered() in render()
168 OS, determineCoveragePercentageColor(Function.LineCoverage)) in render()
171 OS << "\n"; in render()
175 raw_ostream &OS) { in renderFunctionReports() argument
182 OS << "\n"; in renderFunctionReports()
183 OS << "File '" << Filename << "':\n"; in renderFunctionReports()
184 OS << column("Name", FunctionReportColumns[0]) in renderFunctionReports()
191 OS << "\n"; in renderFunctionReports()
192 renderDivider(FunctionReportColumns, OS); in renderFunctionReports()
193 OS << "\n"; in renderFunctionReports()
200 render(Function, OS); in renderFunctionReports()
203 renderDivider(FunctionReportColumns, OS); in renderFunctionReports()
204 OS << "\n"; in renderFunctionReports()
205 render(Totals, OS); in renderFunctionReports()
210 void CoverageReport::renderFileReports(raw_ostream &OS) { in renderFileReports() argument
212 OS << column("Filename", FileReportColumns[0]) in renderFileReports()
219 renderDivider(FileReportColumns, OS); in renderFileReports()
220 OS << "\n"; in renderFileReports()
230 render(Summary, OS); in renderFileReports()
232 renderDivider(FileReportColumns, OS); in renderFileReports()
233 OS << "\n"; in renderFileReports()
234 render(Totals, OS); in renderFileReports()