Lines Matching refs:OS
43 TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream &os,
46 : OS(os), LangOpts(0), DiagOpts(&diags),
53 delete &OS;
71 OS << "In file included from " << PLoc.getFilename()
74 OS << "In included file:\n";
408 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':';
410 OS << PLoc.getColumn() << ':';
411 OS << ' ';
413 OS << "note: expanded from:\n";
423 OS << "note: (skipping " << (MacroSkipEnd - MacroSkipStart)
590 OS << SourceLine << '\n';
593 OS.changeColor(caretColor, true);
594 OS << CaretLine << '\n';
596 OS.resetColor();
601 OS.changeColor(fixitColor, false);
603 OS << ' ';
604 OS << FixItInsertionLine << '\n';
606 OS.resetColor();
642 OS << "fix-it:\"";
643 OS.write_escaped(SM.getPresumedLoc(B).getFilename());
644 OS << "\":{" << SM.getLineNumber(BInfo.first, BInfo.second)
649 OS.write_escaped(Hint->CodeToInsert);
650 OS << "\"\n";
751 /// \brief OS the stream to which the word-wrapping string will be
767 static bool PrintWordWrapped(llvm::raw_ostream &OS,
803 OS << ' ';
806 OS.write(&Str[WordStart], WordLength);
813 OS << '\n';
814 OS.write(&IndentStr[0], Indentation);
815 OS.write(&Str[WordStart], WordLength);
825 OS.write(&Str[Length], Str.size() - Length);
852 uint64_t StartOfLocationInfo = OS.tell();
855 OS << Prefix << ": ";
868 OS << FE->getName();
872 OS << " (in PCH)";
874 OS << ": ";
885 StartOfLocationInfo = OS.tell();
891 OS.changeColor(savedColor, true);
893 OS << PLoc.getFilename();
895 case DiagnosticOptions::Clang: OS << ':' << LineNo; break;
896 case DiagnosticOptions::Msvc: OS << '(' << LineNo; break;
897 case DiagnosticOptions::Vi: OS << " +" << LineNo; break;
902 OS << ',';
905 OS << ':';
906 OS << ColNo;
910 case DiagnosticOptions::Vi: OS << ':'; break;
911 case DiagnosticOptions::Msvc: OS << ") : "; break;
951 OS << '{' << SM.getLineNumber(BInfo.first, BInfo.second) << ':'
960 OS << ':';
963 OS << ' ';
965 OS.resetColor();
973 case Diagnostic::Note: OS.changeColor(noteColor, true); break;
974 case Diagnostic::Warning: OS.changeColor(warningColor, true); break;
975 case Diagnostic::Error: OS.changeColor(errorColor, true); break;
976 case Diagnostic::Fatal: OS.changeColor(fatalColor, true); break;
982 case Diagnostic::Note: OS << "note: "; break;
983 case Diagnostic::Warning: OS << "warning: "; break;
984 case Diagnostic::Error: OS << "error: "; break;
985 case Diagnostic::Fatal: OS << "fatal error: "; break;
989 OS.resetColor();
1064 case Diagnostic::Warning: OS.changeColor(savedColor, true); break;
1065 case Diagnostic::Error: OS.changeColor(savedColor, true); break;
1066 case Diagnostic::Fatal: OS.changeColor(savedColor, true); break;
1075 unsigned Column = OS.tell() - StartOfLocationInfo;
1076 PrintWordWrapped(OS, OutStr, DiagOpts->MessageLength, Column);
1078 OS.write(OutStr.begin(), OutStr.size());
1080 OS << '\n';
1082 OS.resetColor();
1141 OS.flush();