Lines Matching defs:OS

29 void CoveragePrinterText::closeViewFile(OwnedStream OS) {
30 OS->operator<<('\n');
39 auto OS = std::move(OSOrErr.get());
40 raw_ostream &OSRef = *OS.get();
73 auto OS = std::move(OSOrErr.get());
74 raw_ostream &OSRef = *OS.get();
137 void SourceCoverageViewText::renderSourceName(raw_ostream &OS, bool WholeFile) {
138 getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
142 void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS,
145 OS << " |";
150 void SourceCoverageViewText::renderViewDivider(raw_ostream &OS,
153 renderLinePrefix(OS, ViewDepth - 1);
154 OS.indent(2);
157 OS << '-';
158 OS << '\n';
161 void SourceCoverageViewText::renderLine(raw_ostream &OS, LineRef L,
182 colored_ostream(OS, Highlight.value_or(raw_ostream::SAVEDCOLOR),
199 colored_ostream(OS, Highlight.value_or(raw_ostream::SAVEDCOLOR),
202 OS << '\n';
214 raw_ostream &OS, const LineCoverageStats &Line) {
216 OS.indent(LineCoverageColumnWidth) << '|';
220 OS.indent(LineCoverageColumnWidth - C.size());
221 colored_ostream(OS, raw_ostream::MAGENTA,
224 OS << '|';
227 void SourceCoverageViewText::renderLineNumberColumn(raw_ostream &OS,
235 OS.indent(LineNumberColumnWidth - Str.size()) << Str << '|';
238 void SourceCoverageViewText::renderRegionMarkers(raw_ostream &OS,
241 renderLinePrefix(OS, ViewDepth);
242 OS.indent(getCombinedColumnWidth(getOptions()));
258 OS.indent(S->Col - PrevColumn);
262 OS << '^' << C;
268 OS << '\n';
271 void SourceCoverageViewText::renderExpansionSite(raw_ostream &OS, LineRef L,
275 renderLinePrefix(OS, ViewDepth);
276 OS.indent(getCombinedColumnWidth(getOptions()) + (ViewDepth == 0 ? 0 : 1));
277 renderLine(OS, L, LCS, ExpansionCol, ViewDepth);
280 void SourceCoverageViewText::renderExpansionView(raw_ostream &OS,
287 ESV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/false,
291 void SourceCoverageViewText::renderBranchView(raw_ostream &OS, BranchView &BRV,
303 raw_string_ostream OS(Str);
305 colored_ostream(OS, raw_ostream::RED, getOptions().Colors && !Count,
310 OS << ": " << formatBinaryCount(Count);
312 OS << ": " << format("%0.2f", (Total != 0 ? 100.0 * Count / Total : 0.0))
324 renderLinePrefix(OS, ViewDepth);
325 OS << " Branch (" << R.LineStart << ":" << R.ColumnStart << "): [";
328 OS << "Folded - Ignored]\n";
332 OS << BranchCount("True", R.ExecutionCount, R.TrueFolded, Total) << ", "
338 void SourceCoverageViewText::renderMCDCView(raw_ostream &OS, MCDCView &MRV,
341 renderLinePrefix(OS, ViewDepth);
342 OS << "---> MC/DC Decision Region (";
345 OS << DecisionRegion.LineStart << ":";
346 OS << DecisionRegion.ColumnStart << ") to (";
347 OS << DecisionRegion.LineEnd << ":";
348 OS << DecisionRegion.ColumnEnd << ")\n";
349 renderLinePrefix(OS, ViewDepth);
350 OS << "\n";
353 renderLinePrefix(OS, ViewDepth);
354 OS << " Number of Conditions: " << Record.getNumConditions() << "\n";
356 renderLinePrefix(OS, ViewDepth);
357 OS << " " << Record.getConditionHeaderString(i);
359 renderLinePrefix(OS, ViewDepth);
360 OS << "\n";
361 renderLinePrefix(OS, ViewDepth);
362 OS << " Executed MC/DC Test Vectors:\n";
363 renderLinePrefix(OS, ViewDepth);
364 OS << "\n";
365 renderLinePrefix(OS, ViewDepth);
366 OS << " ";
367 OS << Record.getTestVectorHeaderString();
369 renderLinePrefix(OS, ViewDepth);
370 OS << Record.getTestVectorString(i);
372 renderLinePrefix(OS, ViewDepth);
373 OS << "\n";
375 renderLinePrefix(OS, ViewDepth);
376 OS << Record.getConditionCoverageString(i);
378 renderLinePrefix(OS, ViewDepth);
379 OS << " MC/DC Coverage for Decision: ";
380 colored_ostream(OS, raw_ostream::RED,
384 OS << "\n";
385 renderLinePrefix(OS, ViewDepth);
386 OS << "\n";
390 void SourceCoverageViewText::renderInstantiationView(raw_ostream &OS,
393 renderLinePrefix(OS, ViewDepth);
394 OS << ' ';
396 getOptions().colored_ostream(OS, raw_ostream::RED)
399 ISV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/true,
403 void SourceCoverageViewText::renderTitle(raw_ostream &OS, StringRef Title) {
405 getOptions().colored_ostream(OS, raw_ostream::CYAN)
408 getOptions().colored_ostream(OS, raw_ostream::CYAN) << Title << "\n";
411 getOptions().colored_ostream(OS, raw_ostream::CYAN)