| /llvm-project/llvm/lib/Support/ |
| H A D | WithColor.cpp | 41 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 …]
|
| /llvm-project/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyFunctionDumper.cpp | 47 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 D | PrettyCompilandDumper.cpp | 54 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 D | PrettyVariableDumper.cpp | 53 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 D | PrettyClassDefinitionDumper.cpp | 55 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 D | PrettyEnumDumper.cpp | 28 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 D | PrettyTypedefDumper.cpp | 32 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 D | PrettyTypeDumper.cpp | 167 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 D | PrettyBuiltinDumper.cpp | 22 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()
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | WithColor.h | 54 class WithColor { 62 LLVM_CTOR_NODISCARD WithColor(raw_ostream &OS, HighlightColor S, 71 LLVM_CTOR_NODISCARD WithColor( 77 ~WithColor(); 81 template <typename T> WithColor &operator<<(T &O) { 85 template <typename T> WithColor &operator<<(const T &O) { 120 WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false, 125 WithColor &resetColor();
|
| /llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Logger.cpp | 34 : 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()
|
| /llvm-project/llvm/utils/FileCheck/ |
| H A D | FileCheck.cpp | 262 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "L:"; in DumpInputAnnotationHelp() 270 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "T:L"; in DumpInputAnnotationHelp() 278 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "T:L'N"; in DumpInputAnnotationHelp() 283 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "^~~"; in DumpInputAnnotationHelp() 286 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "!~~"; in DumpInputAnnotationHelp() 293 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "X~~"; in DumpInputAnnotationHelp() 299 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "?"; in DumpInputAnnotationHelp() 304 WithColor(OS, raw_ostream::SAVEDCOLOR, true) << "..."; in DumpInputAnnotationHelp() 310 WithColor(OS, raw_ostream::GREEN, true) << "success"; in DumpInputAnnotationHelp() 312 WithColor(OS, raw_ostream::RED, true) << "error"; in DumpInputAnnotationHelp() [all …]
|
| /llvm-project/llvm/lib/DebugInfo/Symbolize/ |
| H A D | MarkupFilter.cpp | 28 #include "llvm/Support/WithColor.h" 39 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 in tryData() [all...] |
| /llvm-project/llvm/tools/llvm-ml/ |
| H A D | llvm-ml.cpp | 44 #include "llvm/Support/WithColor.h" 103 WithColor::error() << EC.message() << '\n'; in GetOutputStream() 140 WithColor::error(errs(), ProgName) in AssembleInput() 163 WithColor::error(errs(), ProgName) in AssembleInput() 180 WithColor::error(errs(), ProgName) in AssembleInput() 214 WithColor::warning(errs(), ProgName) in llvm_ml_main() 228 WithColor::error(errs(), ProgName) << OS.str() << '\n'; in llvm_ml_main() 234 WithColor::warning(errs(), ProgName) in llvm_ml_main() 242 WithColor::warning(errs(), ProgName) in llvm_ml_main() 277 WithColor in llvm_ml_main() [all...] |
| /llvm-project/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 344 WithColor::error() << toString(Cycles.takeError()); in runPipeline() 386 WithColor::error() << InputFilename << ": " << EC.message() << '\n'; in main() 409 WithColor::error() in main() 415 WithColor::note() in main() 457 WithColor::error() in main() 477 WithColor::error() << E.getMessage() << '\n'; in main() 480 WithColor::error() << toString(std::move(Err)) << '\n'; in main() 491 WithColor::error() << "no assembly instructions found.\n"; in main() 520 WithColor::error() << E.getMessage() << '\n'; in main() 523 WithColor::error() << toString(std::move(Err)) << '\n'; in main() [all …]
|
| /llvm-project/llvm/tools/llvm-tli-checker/ |
| H A D | llvm-tli-checker.cpp | 21 #include "llvm/Support/WithColor.h" 78 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)); 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 in main() [all...] |
| /llvm-project/llvm/tools/dsymutil/ |
| H A D | LinkUtils.h | 123 WithColor::warning() << Warning + "\n"; 125 WithColor::note() << Twine("while processing ") + Context + "\n"; 129 WithColor::error() << Error + "\n"; 131 WithColor::note() << Twine("while processing ") + Context + "\n";
|
| H A D | dsymutil.cpp | 44 #include "llvm/Support/WithColor.h" 488 WithColor::warning() << "verification skipped for " << Arch 497 WithColor::warning() << "verification skipped for " << Arch in verifyOutput() 506 WithColor::error() << OutputFile << ": " << toString(BinOrErr.takeError()); in verifyOutput() 516 WithColor::warning() << "verification skipped for " << Arch in verifyOutput() 536 WithColor::error() << "output verification failed for " << Arch << '\n'; in verifyOutput() 620 WithColor::warning() << "ignoring unknown option: " << Arg->getSpelling() in dsymutil_main() 642 WithColor::error() << toString(OptionsOrErr.takeError()) << '\n'; in dsymutil_main() 656 WithColor::error() << toString(Repro.takeError()) << '\n'; in dsymutil_main() 665 WithColor in dsymutil_main() [all...] |
| /llvm-project/llvm/tools/llvm-ifs/ |
| H A D | llvm-ifs.cpp | 29 #include "llvm/Support/WithColor.h" 245 WithColor::defaultErrorHandler(std::move(Err)); in fatalError() 250 WithColor::error() << T.str() << '\n'; in fatalError() 413 WithColor::error() in llvm_ifs_main() 424 WithColor::error() << "Interface Stub: Target Mismatch." in llvm_ifs_main() 430 WithColor::error() << "Interface Stub: SoName Mismatch." in llvm_ifs_main() 438 WithColor::error() << "Interface Stub: NeededLibs Mismatch." in llvm_ifs_main() 454 WithColor::error() << "Interface Stub: Type Mismatch for " in llvm_ifs_main() 462 WithColor::error() << "Interface Stub: Size Mismatch for " in llvm_ifs_main() 481 WithColor in llvm_ifs_main() [all...] |
| /llvm-project/lldb/tools/lldb-server/ |
| H A D | lldb-platform.cpp | 26 #include "llvm/Support/WithColor.h" 411 WithColor::error() << "invalid port number string " << optarg << "\n"; 426 WithColor::error() << "invalid fd " << optarg << "\n"; 481 WithColor::error() << "lldb-platform child: Unix domain sockets are not " 494 WithColor::error() << llvm::formatv("Port number {0} is not in the " 560 WithColor::error()
|
| /llvm-project/llvm/tools/llvm-link/ |
| H A D | llvm-link.cpp | 35 #include "llvm/Support/WithColor.h" 197 WithColor::error() << " failed to read name of archive member" in loadArFile() 209 WithColor::error() << " loading memory for member '" << ChildName in loadArFile() 222 WithColor::error() << " member of archive is not a bitcode file: '" in loadArFile() 236 WithColor::error() << " parsing member '" << ChildName in loadArFile() 300 WithColor::error(); in handleDiagnostics() 305 WithColor::warning(); in handleDiagnostics() 359 WithColor::error() << "input module is broken!\n"; in importFunctions() 422 WithColor::error() << " loading file '" << File << "'\n"; in linkFiles() 431 WithColor in linkFiles() [all...] |
| /llvm-project/llvm/lib/CodeGen/ |
| H A D | BasicBlockPathCloning.cpp | 96 WithColor::warning() << "no block with id " << BBID << " in function " in IsValidCloning() 103 WithColor::warning() in IsValidCloning() 115 WithColor::warning() in IsValidCloning() 126 WithColor::warning() in IsValidCloning() 136 WithColor::warning() in IsValidCloning()
|
| /llvm-project/llvm/unittests/Support/ |
| H A D | WithColorTest.cpp | 9 #include "llvm/Support/WithColor.h" 21 WithColor(OS, HighlightColor::Error, ColorMode::Disable) << "test"; in TEST() 30 WithColor(OS, HighlightColor::Error, ColorMode::Auto) << "test"; in TEST() 40 WithColor(OS, HighlightColor::Error, ColorMode::Enable) << "test"; in TEST()
|
| /llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFContext.h | 118 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,
|
| /llvm-project/llvm/tools/llvm-profgen/ |
| H A D | ErrorHandling.h | 24 WithColor::error(errs(), "llvm-profgen"); 29 WithColor::note() << Hint.str() << "\n"; 52 WithColor::warning() << format("%.2f", static_cast<double>(Num) * 100 / Total) in emitWarningSummary()
|