Home
last modified time | relevance | path

Searched refs:WithColor (Results 1 – 25 of 46) sorted by relevance

12

/freebsd-12.1/contrib/llvm/lib/Support/
H A DWithColor.cpp22 WithColor::WithColor(raw_ostream &OS, HighlightColor Color, bool DisableColors) in WithColor() function in WithColor
61 raw_ostream &WithColor::error() { return error(errs()); } in error()
63 raw_ostream &WithColor::warning() { return warning(errs()); } in warning()
65 raw_ostream &WithColor::note() { return note(errs()); } in note()
67 raw_ostream &WithColor::remark() { return remark(errs()); } in remark()
69 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error()
85 raw_ostream &WithColor::note(raw_ostream &OS, StringRef Prefix, in note()
100 bool WithColor::colorsEnabled() { in colorsEnabled()
108 WithColor &WithColor::changeColor(raw_ostream::Colors Color, bool Bold, in changeColor()
115 WithColor &WithColor::resetColor() { in resetColor()
[all …]
H A DSourceMgr.cpp377 WithColor S(OS, raw_ostream::SAVEDCOLOR, true, false, !ShowColors); in print()
400 WithColor::error(OS, "", !ShowColors); in print()
403 WithColor::warning(OS, "", !ShowColors); in print()
406 WithColor::note(OS, "", !ShowColors); in print()
409 WithColor::remark(OS, "", !ShowColors); in print()
414 WithColor(OS, raw_ostream::SAVEDCOLOR, true, false, !ShowColors) in print()
463 WithColor S(OS, raw_ostream::GREEN, true, false, !ShowColors); in print()
/freebsd-12.1/contrib/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp78 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
87 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
96 WithColor(Printer, PDB_ColorItem::Identifier).get() << Name; in start()
112 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start()
125 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
132 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
136 WithColor(Printer, PDB_ColorItem::Comment).get() in start()
141 WithColor(Printer, PDB_ColorItem::Register).get() in start()
144 WithColor(Printer, PDB_ColorItem::Register).get() << "FPO"; in start()
172 WithColor(Printer, PDB_ColorItem::Keyword).get() in start()
[all …]
H A DPrettyCompilandDumper.cpp55 WithColor(Printer, PDB_ColorItem::Path).get() << FullName; in start()
67 WithColor(Printer, PDB_ColorItem::Comment).get() in start()
85 WithColor(Printer, StatementColor).get() << LineStart; in start()
102 WithColor(Printer, PDB_ColorItem::Address).get() in start()
108 WithColor(Printer, PDB_ColorItem::Address).get() in start()
140 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
143 WithColor(Printer, PDB_ColorItem::Comment).get() in dump()
149 WithColor(Printer, PDB_ColorItem::LiteralValue).get() in dump()
151 WithColor(Printer, PDB_ColorItem::Comment).get() in dump()
181 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
[all …]
H A DPrettyVariableDumper.cpp52 WithColor(Printer, PDB_ColorItem::Address).get() in start()
55 WithColor(Printer, PDB_ColorItem::Keyword).get() << "static "; in start()
70 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
78 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
98 WithColor(Printer, PDB_ColorItem::Offset).get() in startVbptr()
108 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
150 WithColor(Printer, PDB_ColorItem::Identifier).get() in dump()
169 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in dumpRight()
186 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in dump()
192 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const "; in dump()
[all …]
H A DPrettyClassDefinitionDumper.cpp55 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in prettyPrintClassIntro()
57 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in prettyPrintClassIntro()
59 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in prettyPrintClassIntro()
61 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in prettyPrintClassIntro()
62 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in prettyPrintClassIntro()
63 WithColor(Printer, PDB_ColorItem::Comment).get() << " [sizeof = " << Size in prettyPrintClassIntro()
76 WithColor(Printer, PDB_ColorItem::Keyword).get() << Base.getAccess(); in prettyPrintClassIntro()
78 WithColor(Printer, PDB_ColorItem::Keyword).get() << " virtual"; in prettyPrintClassIntro()
80 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Base.getName(); in prettyPrintClassIntro()
102 WithColor(Printer, PDB_ColorItem::Padding).get() in prettyPrintClassOutro()
[all …]
H A DPrettyEnumDumper.cpp28 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start()
30 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start()
32 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in start()
33 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
34 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in start()
38 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
39 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in start()
58 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
61 WithColor(Printer, PDB_ColorItem::LiteralValue).get() in start()
H A DPrettyTypedefDumper.cpp31 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in start()
35 WithColor(Printer, PDB_ColorItem::Identifier).get() << " " in start()
50 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in dump()
51 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Symbol.getName(); in dump()
56 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump()
58 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump()
72 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict"; in dump()
81 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
82 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
H A DPrettyTypeDumper.cpp166 WithColor(Printer, PDB_ColorItem::Identifier).get() << Label; in dumpSymbolCategory()
184 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in printClassDecl()
186 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in printClassDecl()
188 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in printClassDecl()
190 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in printClassDecl()
191 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in printClassDecl()
220 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Classes"; in start()
304 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Symbol.getCount(); in dump()
353 WithColor(Printer, PDB_ColorItem::Keyword).get() in dumpClassLayout()
355 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in dumpClassLayout()
H A DPrettyBuiltinDumper.cpp23 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start()
25 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start()
26 WithColor(Printer, PDB_ColorItem::Type).get() << getTypeName(Symbol); in start()
H A DLinePrinter.h34 friend class WithColor; variable
155 class WithColor {
157 WithColor(LinePrinter &P, PDB_ColorItem C);
158 ~WithColor();
H A DPrettyClassLayoutGraphicalDumper.cpp89 WithColor(Printer, PDB_ColorItem::Padding).get() in start()
103 WithColor(Printer, PDB_ColorItem::Padding).get() << "<padding> (" << Amount in printPaddingRow()
125 WithColor(Printer, PDB_ColorItem::Offset).get() in dump()
129 WithColor(Printer, PDB_ColorItem::Identifier).get() << Layout.getName(); in dump()
H A DPrettyExternalSymbolDumper.cpp39 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(Addr, 10); in dump()
41 WithColor(Printer, PDB_ColorItem::Identifier).get() << LinkageName; in dump()
H A Dllvm-pdbutil.cpp946 WithColor(Printer, PDB_ColorItem::Path).get() << File; in dumpInjectedSources()
950 WithColor(Printer, PDB_ColorItem::Keyword).get() << "obj"; in dumpInjectedSources()
952 WithColor(Printer, PDB_ColorItem::Path).get() << Obj; in dumpInjectedSources()
954 WithColor(Printer, PDB_ColorItem::Keyword).get() << "vname"; in dumpInjectedSources()
956 WithColor(Printer, PDB_ColorItem::Path).get() << VFName; in dumpInjectedSources()
958 WithColor(Printer, PDB_ColorItem::Keyword).get() << "crc"; in dumpInjectedSources()
1065 WithColor(Printer, PDB_ColorItem::Path).get() << FileName; in dumpPretty()
1082 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Age"; in dumpPretty()
1096 WithColor(Printer, PDB_ColorItem::SectionHeader).get() in dumpPretty()
1172 WithColor(Printer, PDB_ColorItem::SectionHeader).get() in dumpPretty()
[all …]
H A DLinePrinter.cpp289 WithColor::WithColor(LinePrinter &P, PDB_ColorItem C) in WithColor() function in WithColor
295 WithColor::~WithColor() { in ~WithColor()
300 void WithColor::applyColor(PDB_ColorItem C) { in applyColor()
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DWithColor.h38 class WithColor {
48 WithColor(raw_ostream &OS, HighlightColor S, bool DisableColors = false);
57 WithColor(raw_ostream &OS,
63 ~WithColor();
67 template <typename T> WithColor &operator<<(T &O) {
71 template <typename T> WithColor &operator<<(const T &O) {
106 WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
111 WithColor &resetColor();
/freebsd-12.1/contrib/llvm/tools/llc/
H A Dllc.cpp235 WithColor::error() << EC.message() << '\n'; in GetOutputStream()
271 WithColor::note() << "!srcloc = " << LocCookie << "\n"; in InlineAsmDiagHandler()
343 WithColor::error(errs(), argv[0]) in main()
367 WithColor::error(errs(), argv0) in addPass()
376 WithColor::error(errs(), argv0) in addPass()
407 Err.print(argv[0], WithColor::error(errs(), argv[0])); in compileModule()
427 WithColor::error(errs(), argv[0]) << Error; in compileModule()
519 WithColor::warning(errs(), argv[0]) in compileModule()
544 WithColor::warning(errs(), argv[0]) in compileModule()
550 WithColor::warning(errs(), argv[0]) in compileModule()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp243 WithColor::error() << toString(Cycles.takeError()); in runPipeline()
281 WithColor::error() << InputFilename << ": " << EC.message() << '\n'; in main()
325 WithColor::error() in main()
331 WithColor::note() in main()
343 WithColor::error() << E.getMessage() << '\n'; in main()
346 WithColor::error() << toString(std::move(Err)) << '\n'; in main()
352 WithColor::error() << "no assembly instructions found.\n"; in main()
359 WithColor::error() << EC.message() << '\n'; in main()
369 WithColor::error() in main()
423 WithColor::error() << IE.Message << '\n'; in main()
[all …]
/freebsd-12.1/contrib/llvm/tools/llvm-link/
H A Dllvm-link.cpp191 WithColor::error(); in handleDiagnostics()
196 WithColor::warning(); in handleDiagnostics()
242 WithColor::error() << "input module is broken!\n"; in importFunctions()
287 WithColor::error() << " loading file '" << File << "'\n"; in linkFiles()
296 WithColor::error() << "input module is broken!\n"; in linkFiles()
387 WithColor::error() << EC.message() << '\n'; in main()
393 WithColor::error() << "linked module is broken!\n"; in main()
/freebsd-12.1/contrib/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp204 WithColor::error(errs(), ProgName) << Error; in GetTarget()
217 WithColor::error() << EC.message() << '\n'; in GetOutputStream()
266 WithColor::error() << "defsym must be of the form: sym=value: " << I in fillCommandLineSymbols()
272 WithColor::error() << "value is not an integer: " << Val << "\n"; in fillCommandLineSymbols()
290 WithColor::error(errs(), ProgName) in AssembleInput()
336 WithColor::error(errs(), ProgName) in main()
361 WithColor::error(errs(), ProgName) in main()
434 WithColor::error() << "dwo output only supported with object files\n"; in main()
456 WithColor::error() in main()
/freebsd-12.1/contrib/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp48 WithColor::warning(); in warn()
54 WithColor::note() << Hint << "\n"; in warn()
59 WithColor::error(); in exitWithError()
65 WithColor::note() << Hint << "\n"; in exitWithError()
/freebsd-12.1/contrib/llvm/tools/lli/
H A Dlli.cpp340 WithColor::error(errs(), "lli") << "invalid optimization level.\n"; in getOptLevel()
442 WithColor::error(errs(), argv[0]) in main()
458 WithColor::error(errs(), argv[0]) in main()
461 WithColor::error(errs(), argv[0]) << "unknown error creating EE!\n"; in main()
537 WithColor::warning(errs(), argv[0]) in main()
564 WithColor::error(errs(), argv[0]) in main()
578 WithColor::warning(errs(), argv[0]) in main()
580 WithColor::note() << "defaulting to local execution\n"; in main()
584 WithColor::error(errs(), argv[0]) in main()
588 WithColor::error(errs(), argv[0]) in main()
[all …]
/freebsd-12.1/contrib/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugLoc.cpp97 WithColor::error() << "location list overflows the debug_loc section.\n"; in parseOneLocationList()
114 WithColor::error() << "location list overflows the debug_loc section.\n"; in parseOneLocationList()
120 WithColor::error() << "location list overflows the debug_loc section.\n"; in parseOneLocationList()
144 WithColor::error() << "failed to consume entire .debug_loc section\n"; in parse()
181 WithColor::error() << "dumping support for LLE of kind " << (int)Kind in parseOneLocationList()
/freebsd-12.1/contrib/llvm/tools/lldb/tools/driver/
H A DDriver.cpp445 WithColor::warning() << "program arguments are ignored when attaching.\n"; in ProcessArgs()
488 WithColor::error() in PrepareCommandsForSourcing()
514 WithColor::error() << format("fdopen(%i, \"r\") failed (errno = %i) " in PrepareCommandsForSourcing()
521 WithColor::error() in PrepareCommandsForSourcing()
670 WithColor::error() << error_cstr << '\n'; in MainLoop()
672 WithColor::error() << error.GetError() << '\n'; in MainLoop()
888 WithColor::warning() << "ignoring unknown option: " << arg->getSpelling() in wmain()
908 WithColor::error() << "initialization failed: " << error.GetCString() in wmain()
934 WithColor::error() << error_cstr << '\n'; in wmain()
/freebsd-12.1/contrib/llvm/tools/llvm-dis/
H A Dllvm-dis.cpp131 case DS_Error: WithColor::error(OS); break; in handleDiagnostics()
132 case DS_Warning: WithColor::warning(OS); break; in handleDiagnostics()
134 case DS_Note: WithColor::note(OS); break; in handleDiagnostics()

12