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 ? *Highlight : raw_ostream::SAVEDCOLOR,
199 colored_ostream(OS, Highlight ? *Highlight : 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,
309 renderLinePrefix(OS, ViewDepth);
310 OS << " Branch (" << R.LineStart << ":" << R.ColumnStart << "): [";
313 OS << "Folded - Ignored]\n";
317 colored_ostream(OS, raw_ostream::RED,
323 OS << ": " << formatCount(R.ExecutionCount) << ", ";
325 OS << ": " << format("%0.2f", TruePercent) << "%, ";
327 colored_ostream(OS, raw_ostream::RED,
333 OS << ": " << formatCount(R.FalseExecutionCount);
335 OS << ": " << format("%0.2f", FalsePercent) << "%";
336 OS << "]\n";
340 void SourceCoverageViewText::renderMCDCView(raw_ostream &OS, MCDCView &MRV,
343 renderLinePrefix(OS, ViewDepth);
344 OS << "---> MC/DC Decision Region (";
347 OS << DecisionRegion.LineStart << ":";
348 OS << DecisionRegion.ColumnStart << ") to (";
349 OS << DecisionRegion.LineEnd << ":";
350 OS << DecisionRegion.ColumnEnd << ")\n";
351 renderLinePrefix(OS, ViewDepth);
352 OS << "\n";
355 renderLinePrefix(OS, ViewDepth);
356 OS << " Number of Conditions: " << Record.getNumConditions() << "\n";
358 renderLinePrefix(OS, ViewDepth);
359 OS << " " << Record.getConditionHeaderString(i);
361 renderLinePrefix(OS, ViewDepth);
362 OS << "\n";
363 renderLinePrefix(OS, ViewDepth);
364 OS << " Executed MC/DC Test Vectors:\n";
365 renderLinePrefix(OS, ViewDepth);
366 OS << "\n";
367 renderLinePrefix(OS, ViewDepth);
368 OS << " ";
369 OS << Record.getTestVectorHeaderString();
371 renderLinePrefix(OS, ViewDepth);
372 OS << Record.getTestVectorString(i);
374 renderLinePrefix(OS, ViewDepth);
375 OS << "\n";
377 renderLinePrefix(OS, ViewDepth);
378 OS << Record.getConditionCoverageString(i);
380 renderLinePrefix(OS, ViewDepth);
381 OS << " MC/DC Coverage for Decision: ";
382 colored_ostream(OS, raw_ostream::RED,
386 OS << "\n";
387 renderLinePrefix(OS, ViewDepth);
388 OS << "\n";
392 void SourceCoverageViewText::renderInstantiationView(raw_ostream &OS,
395 renderLinePrefix(OS, ViewDepth);
396 OS << ' ';
398 getOptions().colored_ostream(OS, raw_ostream::RED)
401 ISV.View->print(OS, /*WholeFile=*/false, /*ShowSourceName=*/true,
405 void SourceCoverageViewText::renderTitle(raw_ostream &OS, StringRef Title) {
407 getOptions().colored_ostream(OS, raw_ostream::CYAN)
410 getOptions().colored_ostream(OS, raw_ostream::CYAN) << Title << "\n";
413 getOptions().colored_ostream(OS, raw_ostream::CYAN)