Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DWithColor.cpp41 WithColor::AutoDetectFunctionType WithColor::AutoDetectFunction =
44 WithColor::WithColor(raw_ostream &OS, HighlightColor Color, ColorMode Mode) in WithColor() function in WithColor
83 raw_ostream &WithColor::error() { return error(errs()); } in error()
85 raw_ostream &WithColor::warning() { return warning(errs()); } in warning()
87 raw_ostream &WithColor::note() { return note(errs()); } in note()
89 raw_ostream &WithColor::remark() { return remark(errs()); } in remark()
91 raw_ostream &WithColor::error(raw_ostream &OS, StringRef Prefix, in error()
95 return WithColor(OS, HighlightColor::Error, in error()
101 raw_ostream &WithColor::warning(raw_ostream &OS, StringRef Prefix, in warning()
105 return WithColor(OS, HighlightColor::Warning, in warning()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DPrettyFunctionDumper.cpp47 WithColor(Printer, PDB_ColorItem::Type).get() << ClassParent->getName(); in dumpClassParentWithScopeOperator()
77 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
80 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
87 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start()
89 WithColor(Printer, PDB_ColorItem::Identifier).get() in start()
98 WithColor(Printer, PDB_ColorItem::Identifier).get() << Name; in start()
114 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start()
116 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in start()
124 WithColor(Printer, PDB_ColorItem::Address).get() << format_hex(FuncStart, 10); in start()
127 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
[all …]
H A DPrettyCompilandDumper.cpp54 WithColor(Printer, PDB_ColorItem::Path).get() << FullName; in start()
62 WithColor(Printer, PDB_ColorItem::Path).get() << File->getFileName(); in start()
66 WithColor(Printer, PDB_ColorItem::Comment).get() in start()
84 WithColor(Printer, StatementColor).get() << LineStart; in start()
86 WithColor(Printer, StatementColor).get() << " - " << LineEnd; in start()
92 WithColor(Printer, StatementColor).get() << ColumnStart; in start()
94 WithColor(Printer, StatementColor).get() << " - " << ColumnEnd; in start()
101 WithColor(Printer, PDB_ColorItem::Address).get() in start()
107 WithColor(Printer, PDB_ColorItem::Address).get() in start()
139 WithColor(Printer, PDB_ColorItem::Address).get() in dump()
[all …]
H A DPrettyVariableDumper.cpp53 WithColor(Printer, PDB_ColorItem::Address).get() in start()
56 WithColor(Printer, PDB_ColorItem::Keyword).get() << "static "; in start()
66 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getValue(); in start()
71 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
79 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
84 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Var.getLength(); in start()
90 WithColor(Printer, PDB_ColorItem::Identifier).get() << Var.getName(); in start()
99 WithColor(Printer, PDB_ColorItem::Offset).get() in startVbptr()
109 WithColor(Printer, PDB_ColorItem::Offset).get() in start()
137 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); 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.cpp32 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in start()
36 WithColor(Printer, PDB_ColorItem::Identifier).get() << " " in start()
51 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in dump()
52 WithColor(Printer, PDB_ColorItem::Type).get() << " " << Symbol.getName(); in dump()
57 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump()
59 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump()
73 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict"; in dump()
82 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
83 WithColor(Printer, PDB_ColorItem::Type).get() << Symbol.getName(); in dump()
H A DPrettyTypeDumper.cpp167 WithColor(Printer, PDB_ColorItem::Identifier).get() << Label; in dumpSymbolCategory()
185 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in printClassDecl()
187 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in printClassDecl()
189 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in printClassDecl()
191 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in printClassDecl()
192 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in printClassDecl()
221 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Classes"; in start()
305 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Symbol.getCount(); in dump()
354 WithColor(Printer, PDB_ColorItem::Keyword).get() in dumpClassLayout()
356 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName(); in dumpClassLayout()
H A DPrettyBuiltinDumper.cpp22 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start()
24 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start()
25 WithColor(Printer, PDB_ColorItem::Type).get() << getTypeName(Symbol); in start()
H A DPrettyClassLayoutGraphicalDumper.cpp88 WithColor(Printer, PDB_ColorItem::Padding).get() in start()
102 WithColor(Printer, PDB_ColorItem::Padding).get() << "<padding> (" << Amount in printPaddingRow()
124 WithColor(Printer, PDB_ColorItem::Offset).get() in dump()
128 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DWithColor.h54 class WithColor {
62 LLVM_CTOR_NODISCARD LLVM_ABI WithColor(raw_ostream &OS, HighlightColor S,
71 LLVM_CTOR_NODISCARD WithColor(
77 LLVM_ABI ~WithColor();
81 template <typename T> WithColor &operator<<(T &O) {
85 template <typename T> WithColor &operator<<(const T &O) {
120 LLVM_ABI WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
125 LLVM_ABI WithColor &resetColor();
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DLogger.cpp34 : OS(OS), ShowColors(llvm::WithColor::defaultAutoDetectFunction()(OS)) {} in TextualLogger()
39 llvm::WithColor Header(OS, llvm::raw_ostream::Colors::RED, /*Bold=*/true); in beginAnalysis()
51 llvm::WithColor Header(OS, llvm::raw_ostream::Colors::RED, /*Bold=*/true); in endAnalysis()
63 llvm::WithColor Header(OS, llvm::raw_ostream::Colors::RED, /*Bold=*/true); in enterBlock()
81 llvm::WithColor Subheader(OS, llvm::raw_ostream::Colors::CYAN, in enterElement()
90 llvm::WithColor Subheader(OS, llvm::raw_ostream::Colors::CYAN, in recordState()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkupFilter.cpp39 ColorsEnabled.value_or(WithColor::defaultAutoDetectFunction()(OS))) {} in MarkupFilter()
100 WithColor::error(errs()) in tryMMap()
153 WithColor::error(errs()) << "duplicate module ID\n"; in tryModule()
257 WithColor::error() << "no mmap covers address\n"; in tryPC()
266 WithColor::defaultErrorHandler(LI.takeError()); in tryPC()
313 WithColor::error() << "no mmap covers address\n"; in tryBackTrace()
323 WithColor::defaultErrorHandler(II.takeError()); in tryBackTrace()
377 WithColor::error() << "no mmap covers address\n"; in tryData()
386 WithColor::defaultErrorHandler(Symbol.takeError()); in tryData()
504 WithColor::error() << "unknown module type\n"; in parseModule()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBasicBlockPathCloning.cpp97 WithColor::warning() << "no block with id " << BBID << " in function " in IsValidCloning()
104 WithColor::warning() in IsValidCloning()
116 WithColor::warning() in IsValidCloning()
126 WithColor::warning() in IsValidCloning()
134 WithColor::warning() in IsValidCloning()
144 WithColor::warning() in IsValidCloning()
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A Dllvm-mca.cpp363 WithColor::error() << toString(Cycles.takeError()); in runPipeline()
405 WithColor::error() << InputFilename << ": " << EC.message() << '\n'; in main()
428 WithColor::error() in main()
434 WithColor::note() in main()
474 WithColor::error() in main()
494 WithColor::error() << E.getMessage() << '\n'; in main()
497 WithColor::error() << toString(std::move(Err)) << '\n'; in main()
508 WithColor::error() << "no assembly instructions found.\n"; in main()
537 WithColor::error() << E.getMessage() << '\n'; in main()
540 WithColor::error() << toString(std::move(Err)) << '\n'; in main()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-tli-checker/
H A Dllvm-tli-checker.cpp78 WithColor::error() << Message << '\n'; in fail()
96 WithColor::warning() << ArchiveFilename << "(" << ChildName in reportArchiveChildIssue()
182 WithColor::warning() << O->getFileName() in populateFromObject()
218 WithColor::defaultErrorHandler(std::move(Err)); in populateFromArchive()
227 WithColor::warning() << StringRef(Filepath) << ": not found\n"; in populateFromFile()
234 WithColor::defaultWarningHandler(ExpectedBinary.takeError()); in populateFromFile()
245 WithColor::warning() << StringRef(Filepath) in populateFromFile()
250 WithColor::warning() << StringRef(Filepath) << ": no symbols found\n"; in populateFromFile()
314 WithColor::error() << "NO symbols found!\n"; in main()
/freebsd/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp185 WithColor::error() << " failed to read name of archive member" in loadArFile()
197 WithColor::error() << " loading memory for member '" << ChildName in loadArFile()
210 WithColor::error() << " member of archive is not a bitcode file: '" in loadArFile()
224 WithColor::error() << " parsing member '" << ChildName in loadArFile()
288 WithColor::error(); in handleDiagnostics()
293 WithColor::warning(); in handleDiagnostics()
347 WithColor::error() << "input module is broken!\n"; in importFunctions()
410 WithColor::error() << " loading file '" << File << "'\n"; in linkFiles()
419 WithColor::error() << "input module is broken!\n"; in linkFiles()
514 WithColor::error() << EC.message() << '\n'; in main()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DError.cpp53 WithColor::note() << Msg << "\n"; in PrintNote()
57 PrintMsg(WithColor::note()); in PrintNote()
92 void PrintWarning(const Twine &Msg) { WithColor::warning() << Msg << "\n"; } in PrintWarning()
104 void PrintError(const Twine &Msg) { WithColor::error() << Msg << "\n"; } in PrintError()
107 PrintMsg(WithColor::error()); in PrintError()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFContext.h118 WithColor::defaultErrorHandler;
119 std::function<void(Error)> WarningHandler = WithColor::defaultWarningHandler;
138 WithColor::defaultErrorHandler,
140 WithColor::defaultWarningHandler,
449 WithColor::defaultErrorHandler,
451 WithColor::defaultWarningHandler,
458 WithColor::defaultErrorHandler,
460 WithColor::defaultWarningHandler,
/freebsd/contrib/llvm-project/llvm/tools/llc/
H A Dllc.cpp251 WithColor::error(errs(), "llc") << Prefix << Msg << "\n"; in reportError()
420 WithColor::error(errs(), argv0) in addPass()
429 WithColor::error(errs(), argv0) in addPass()
463 WithColor::error(errs(), argv[0]) << "invalid optimization level.\n"; in compileModule()
475 WithColor::error(errs(), argv[0]) in compileModule()
548 WithColor::error(errs(), argv[0]) << Error << "\n"; in compileModule()
570 Err.print(argv[0], WithColor::error(errs(), argv[0])); in compileModule()
591 WithColor::error(errs(), argv[0]) << Error << "\n"; in compileModule()
649 WithColor::warning(errs(), argv[0]) in compileModule()
694 WithColor::error(errs(), argv0) << SMD.getMessage() << '\n'; in compileModule()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/
H A Dllvm-mc.cpp254 WithColor::error(errs(), ProgName) << Error; in GetTarget()
268 WithColor::error() << EC.message() << '\n'; in GetOutputStream()
317 WithColor::error() << "defsym must be of the form: sym=value: " << I in fillCommandLineSymbols()
323 WithColor::error() << "value is not an integer: " << Val << "\n"; in fillCommandLineSymbols()
341 WithColor::error(errs(), ProgName) in AssembleInput()
395 WithColor::error(errs(), ProgName) in main()
420 WithColor::error(errs(), ProgName) in main()
514 WithColor::error() << "dwo output only supported with object files\n"; in main()
544 WithColor::error() in main()
553 WithColor::error() << "invalid InstPrinter option '" << Opt << "'\n"; in main()
/freebsd/contrib/llvm-project/llvm/tools/llvm-cxxmap/
H A Dllvm-cxxmap.cpp59 WithColor::warning(); in warn()
65 WithColor::note() << Hint << "\n"; in warn()
70 WithColor::error(); in exitWithError()
76 WithColor::note() << Hint << "\n"; in exitWithError()
/freebsd/contrib/llvm-project/lldb/tools/driver/
H A DDriver.cpp198 WithColor::setAutoDetectFunction(disable_color); in ProcessArgs()
386 WithColor::warning() << "program arguments are ignored when attaching.\n"; in ProcessArgs()
536 WithColor::warning() << "commands specified to run after file load (via -o " in MainLoop()
551 WithColor::error() << error.GetCString() << '\n'; in MainLoop()
622 WithColor::error() << error_cstr << '\n'; in MainLoop()
624 WithColor::error() << error.GetError() << '\n'; in MainLoop()
747 WithColor::error() << "argument to '" in main()
754 WithColor::error() << "unknown option: " << arg->getSpelling() << '\n'; in main()
765 WithColor::error() << "initialization failed: " << error.GetCString() in main()
833 WithColor::error() << error_cstr << '\n'; in main()
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/
H A DError.h17 #include "llvm/Support/WithColor.h"
26 WithColor::error(errs(), Prefix) << Info.message() << '\n';
32 WithColor::warning(errs(), Prefix) << Message << '\n';

1234