/freebsd/contrib/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 …]
|
/freebsd/contrib/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()
|
H A D | PrettyClassLayoutGraphicalDumper.cpp | 89 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()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | WithColor.h | 1 //===- WithColor.h ----------------------------------------------*- C++ -*-===// 54 class WithColor { 58 /// To be used like this: WithColor(OS, HighlightColor::String) << "text"; 62 LLVM_CTOR_NODISCARD WithColor(raw_ostream &OS, HighlightColor S, 64 /// To be used like this: WithColor(OS, raw_ostream::BLACK) << "text"; 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 [all...] |
/freebsd/contrib/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()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | MarkupFilter.cpp | 31 #include "llvm/Support/WithColor.h" 42 ColorsEnabled.value_or(WithColor::defaultAutoDetectFunction()(OS))) {} in MarkupFilter() 103 WithColor::error(errs()) in tryMMap() 156 WithColor::error(errs()) << "duplicate module ID\n"; in tryModule() 260 WithColor::error() << "no mmap covers address\n"; in tryPC() 269 WithColor::defaultErrorHandler(LI.takeError()); in tryPC() 316 WithColor::error() << "no mmap covers address\n"; in tryBackTrace() 326 WithColor::defaultErrorHandler(II.takeError()); in tryBackTrace() 380 WithColor::error() << "no mmap covers address\n"; in tryData() 389 WithColor in tryData() [all...] |
/freebsd/contrib/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 …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-tli-checker/ |
H A D | llvm-tli-checker.cpp | 21 #include "llvm/Support/WithColor.h" 76 WithColor::error() << Message << '\n'; in unwrapIgnoreError() 94 WithColor::warning() << ArchiveFilename << "(" << ChildName in reportArchiveChildIssue() 180 WithColor::warning() << O->getFileName() in maybeInsertSymbol() 216 WithColor::defaultErrorHandler(std::move(Err)); in populateFromArchive() 225 WithColor::warning() << StringRef(Filepath) << ": not found\n"; 232 WithColor::defaultWarningHandler(ExpectedBinary.takeError()); in populateFromFile() 243 WithColor::warning() << StringRef(Filepath) in populateFromFile() 248 WithColor::warning() << StringRef(Filepath) << ": no symbols found\n"; in populateFromFile() 312 WithColor in main() [all...] |
/freebsd/contrib/llvm-project/lldb/tools/lldb-server/ |
H A D | lldb-platform.cpp | 182 WithColor::error() << "invalid port offset string " << optarg << "\n"; in main_platform() 187 WithColor::error() << llvm::formatv( in main_platform() 200 WithColor::error() << "invalid port number string " << optarg << "\n"; in main_platform() 205 WithColor::error() << llvm::formatv( in main_platform() 235 WithColor::error() << llvm::formatv( in main_platform() 295 WithColor::error() << error.AsCString() << '\n'; in main_platform() 378 WithColor::error() << error.AsCString() << '\n'; in main_platform()
|
/freebsd/contrib/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()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-link/ |
H A D | llvm-link.cpp | 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() 358 WithColor::error() << "input module is broken!\n"; in importFunctions() 422 WithColor::error() << " loading file '" << File << "'\n"; in linkFiles() 431 WithColor::error() << "input module is broken!\n"; in linkFiles() 536 WithColor::error() << EC.message() << '\n'; in main() [all …]
|
/freebsd/contrib/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, 443 WithColor::defaultErrorHandler, 445 WithColor::defaultWarningHandler, 452 WithColor::defaultErrorHandler, 454 WithColor::defaultWarningHandler,
|
/freebsd/contrib/llvm-project/llvm/tools/llc/ |
H A D | llc.cpp | 247 WithColor::error(errs(), "llc") << Prefix << Msg << "\n"; in reportError() 425 WithColor::error(errs(), argv0) in addPass() 434 WithColor::error(errs(), argv0) in addPass() 468 WithColor::error(errs(), argv[0]) << "invalid optimization level.\n"; in compileModule() 480 WithColor::error(errs(), argv[0]) in compileModule() 550 WithColor::error(errs(), argv[0]) << Error; in compileModule() 572 Err.print(argv[0], WithColor::error(errs(), argv[0])); in compileModule() 593 WithColor::error(errs(), argv[0]) << Error; in compileModule() 647 WithColor::warning(errs(), argv[0]) in compileModule() 684 WithColor::warning(errs(), argv[0]) in compileModule() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-mc/ |
H A D | llvm-mc.cpp | 237 WithColor::error(errs(), ProgName) << Error; in GetTarget() 251 WithColor::error() << EC.message() << '\n'; in GetOutputStream() 300 WithColor::error() << "defsym must be of the form: sym=value: " << I in fillCommandLineSymbols() 306 WithColor::error() << "value is not an integer: " << Val << "\n"; in fillCommandLineSymbols() 324 WithColor::error(errs(), ProgName) in AssembleInput() 377 WithColor::error(errs(), ProgName) in main() 402 WithColor::error(errs(), ProgName) in main() 495 WithColor::error() << "dwo output only supported with object files\n"; in main() 516 WithColor::error() in main() 525 WithColor::error() << "invalid disassembler option '" << Opt << "'\n"; in main()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-cxxmap/ |
H A D | llvm-cxxmap.cpp | 58 WithColor::warning(); in warn() 64 WithColor::note() << Hint << "\n"; in warn() 69 WithColor::error(); in exitWithError() 75 WithColor::note() << Hint << "\n"; in exitWithError()
|
/freebsd/contrib/llvm-project/lldb/tools/driver/ |
H A D | Driver.cpp | 191 WithColor::setAutoDetectFunction(disable_color); in ProcessArgs() 373 WithColor::warning() << "program arguments are ignored when attaching.\n"; in ProcessArgs() 526 WithColor::warning() << "commands specified to run after file load (via -o " in MainLoop() 541 WithColor::error() << error.GetCString() << '\n'; in MainLoop() 612 WithColor::error() << error_cstr << '\n'; in MainLoop() 614 WithColor::error() << error.GetError() << '\n'; in MainLoop() 761 WithColor::error() << "argument to '" in main() 768 WithColor::error() << "unknown option: " << arg->getSpelling() << '\n'; in main() 779 WithColor::error() << "initialization failed: " << error.GetCString() in main() 805 WithColor::error() << error_cstr << '\n'; in main()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/ |
H A D | Error.h | 17 #include "llvm/Support/WithColor.h" 26 WithColor::error(errs(), Prefix) << Info.message() << '\n'; 32 WithColor::warning(errs(), Prefix) << Message << '\n';
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
H A D | LinePrinter.h | 51 friend class WithColor; variable 170 class WithColor { 172 WithColor(LinePrinter &P, PDB_ColorItem C); 173 ~WithColor();
|