reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Object/SymbolicFile.h
   46 OStream& operator<<(OStream &OS, const DataRefImpl &D) {
   46 OStream& operator<<(OStream &OS, const DataRefImpl &D) {
include/llvm/Support/WithColor.h
   66   template <typename T> WithColor &operator<<(T &O) {
   70   template <typename T> WithColor &operator<<(const T &O) {
  105   WithColor &changeColor(raw_ostream::Colors Color, bool Bold = false,
  110   WithColor &resetColor();
lib/DebugInfo/DWARF/DWARFContext.cpp
  162       WithColor::error()
  252       WithColor::error() << toString(std::move(Err)) << '\n';
  275       WithColor::error() << toString(std::move(Err)) << '\n';
  297       WithColor::error() << toString(std::move(E)) << '\n';
  522         WithColor::error() << toString(std::move(E)) << '\n';
 1354   WithColor::error() << toString(std::move(E)) << '\n';
 1864       WithColor::warning() << Info.message() << '\n';
lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
   58         WithColor::error() << toString(CURanges.takeError()) << '\n';
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
  136       logAllUnhandledErrors(LL.takeError(), WithColor::error());
  211       logAllUnhandledErrors(LL.takeError(), WithColor::error());
lib/DebugInfo/DWARF/DWARFDie.cpp
  351       WithColor::error() << "decoding address ranges: "
lib/DebugInfo/DWARF/DWARFFormValue.cpp
  578     auto COS = WithColor(OS, HighlightColor::String);
lib/DebugInfo/DWARF/DWARFUnit.cpp
  400     WithColor::warning() << format("DWARF compile unit extends beyond its "
  408     WithColor::error() << toString(std::move(e));
  534       WithColor::error() << "parsing a range list table: "
lib/DebugInfo/DWARF/DWARFVerifier.cpp
 1484 raw_ostream &DWARFVerifier::error() const { return WithColor::error(OS); }
 1486 raw_ostream &DWARFVerifier::warn() const { return WithColor::warning(OS); }
 1488 raw_ostream &DWARFVerifier::note() const { return WithColor::note(OS); }
lib/MCA/InstrBuilder.cpp
   70       WithColor::warning()
   73       WithColor::note() << "found in scheduling class " << SCDesc.Name
  552     WithColor::warning() << "found a call in the input assembly sequence.\n";
  553     WithColor::note() << "call instructions are not correctly modeled. "
  559     WithColor::warning() << "found a return instruction in the input"
  561     WithColor::note() << "program counter updates are ignored.\n";
lib/ObjectYAML/COFFEmitter.cpp
  513           WithColor::error()
lib/Support/SourceMgr.cpp
  371     WithColor S(OS, raw_ostream::SAVEDCOLOR, true, false, !ShowColors);
  394       WithColor::error(OS, "", !ShowColors);
  397       WithColor::warning(OS, "", !ShowColors);
  400       WithColor::note(OS, "", !ShowColors);
  403       WithColor::remark(OS, "", !ShowColors);
  457     WithColor S(OS, raw_ostream::GREEN, true, false, !ShowColors);
lib/Support/WithColor.cpp
  107 WithColor &WithColor::changeColor(raw_ostream::Colors Color, bool Bold,
  114 WithColor &WithColor::resetColor() {
lib/TableGen/Error.cpp
   42 void PrintNote(const Twine &Msg) { WithColor::note() << Msg << "\n"; }
   56 void PrintWarning(const Twine &Msg) { WithColor::warning() << Msg << "\n"; }
   66 void PrintError(const Twine &Msg) { WithColor::error() << Msg << "\n"; }
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  836     logAllUnhandledErrors(std::move(E), WithColor::error(errs(), argv[0]));
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  325     logAllUnhandledErrors(std::move(E), WithColor::error(errs(), argv[0]));
tools/clang/tools/extra/pp-trace/PPTrace.cpp
   73   WithColor::error() << Message << '\n';
tools/dsymutil/BinaryHolder.cpp
   56     WithColor::note() << "loaded archive '" << ArchiveFilename << "'\n";
   95     WithColor::note() << "loaded object.\n";
  179               WithColor::warning() << "member has timestamp mismatch.\n";
  184             WithColor::note() << "found member in archive.\n";
  214     WithColor::note() << "trying to open '" << Filename << "'\n";
tools/dsymutil/DebugMap.cpp
  246     WithColor::warning() << "Unable to open " << Path << " "
  252       WithColor::warning() << "Unable to open " << Path << " "
tools/dsymutil/DwarfLinker.cpp
  233   WithColor::note() << "    in DIE:\n";
 2265           WithColor::note() << "The clang module cache may have expired since "
 2276           WithColor::note()
 2616           WithColor::warning()
tools/dsymutil/LinkUtils.h
   75   WithColor::warning() << Warning + "\n";
   77     WithColor::note() << Twine("while processing ") + Context + "\n";
   81   WithColor::error() << Error + "\n";
   83     WithColor::note() << Twine("while processing ") + Context + "\n";
tools/dsymutil/MachODebugMapParser.cpp
  106     WithColor::warning() << "("
  353     WithColor::error() << "cannot load '" << BinaryPath
  361     WithColor::error() << "cannot get '" << BinaryPath
tools/dsymutil/MachOUtils.cpp
   62     WithColor::error() << "lipo: " << Path.getError().message() << "\n";
   69     WithColor::error() << "lipo: " << ErrMsg << "\n";
   82       WithColor::error() << "while keeping " << ArchFiles.front().path()
tools/dsymutil/SymbolMap.cpp
   39     WithColor::warning() << "reference to a unexisting unobfuscated string "
  120     WithColor::warning() << SymbolMapPath << ": " << EC.message()
  136     WithColor::warning() << SymbolMapPath
  146     WithColor::warning() << SymbolMapPath
tools/dsymutil/dsymutil.cpp
  351     WithColor::warning() << "verification skipped for " << Arch
  358     WithColor::error() << OutputFile << ": " << toString(BinOrErr.takeError());
  370       WithColor::error() << "verification failed for " << Arch << '\n';
  449     WithColor::warning() << "ignoring unknown option: " << Arg->getSpelling()
  471     WithColor::error() << toString(OptionsOrErr.takeError());
  485       WithColor::error() << "unsupported cpu architecture: '" << Arch << "'\n";
  505       WithColor::error() << "cannot parse the debug map for '" << InputFile
  520       WithColor::error() << "no architecture to link\n";
  551         WithColor::warning()
  562         WithColor::error() << toString(OutputLocationOrErr.takeError());
  573           WithColor::error() << toString(std::move(E));
  586           WithColor::error() << OutputFile << ": " << EC.message();
  619         WithColor::error() << toString(OutputLocationOrErr.takeError());
tools/llc/llc.cpp
  247     WithColor::error() << EC.message() << '\n';
  283     WithColor::note() << "!srcloc = " << LocCookie << "\n";
  340     WithColor::error(errs(), argv[0]) << toString(std::move(E)) << '\n';
  347     WithColor::error(errs(), argv[0])
  371     WithColor::error(errs(), argv0)
  380     WithColor::error(errs(), argv0)
  411       Err.print(argv[0], WithColor::error(errs(), argv[0]));
  431     WithColor::error(errs(), argv[0]) << Error;
  440     WithColor::error(errs(), argv[0]) << "invalid optimization level.\n";
  485       WithColor::error(errs(), argv[0]) << EC.message() << '\n';
  513     WithColor::error(errs(), Prefix) << "input module is broken!\n";
  523     WithColor::warning(errs(), argv[0])
  549         WithColor::warning(errs(), argv[0])
  555         WithColor::warning(errs(), argv[0])
  575       WithColor::warning(errs(), argv[0])
tools/lldb/tools/driver/Driver.cpp
  378     WithColor::warning() << "program arguments are ignored when attaching.\n";
  420     WithColor::error()
  427     WithColor::error()
  447     WithColor::error() << format("fdopen(%i, \"rb\") failed (errno = %i) "
  573     WithColor::warning() << "commands specified to run after file load (via -o "
  671           WithColor::error() << error_cstr << '\n';
  673           WithColor::error() << error.GetError() << '\n';
  781       WithColor::error() << "reproducer replay failed: " << error << '\n';
  793         WithColor::warning() << "-capture-path specified without -capture\n";
  795         WithColor::error() << "reproducer capture failed: " << error << '\n';
  801         WithColor::error() << "reproducer capture failed: " << error << '\n';
  832     WithColor::warning() << "ignoring unknown option: " << arg->getSpelling()
  842     WithColor::error() << "initialization failed: " << error.GetCString()
  886         WithColor::error() << error_cstr << '\n';
tools/lldb/tools/lldb-test/lldb-test.cpp
  265       WithColor::error() << "compiler context entry has no \"name\"\n";
  798     logAllUnhandledErrors(ActionOr.takeError(), WithColor::error(), "");
  811     WithColor::error() << "Module has no symbol vendor.\n";
  816     WithColor::error() << toString(std::move(E)) << "\n";
  869       WithColor::error() << File << " not recognised as an object file\n";
 1074     WithColor::error() << "initialization failed: " << toString(std::move(e))
 1101   WithColor::error() << "No command specified.\n";
tools/lli/lli.cpp
  336     WithColor::error(errs(), "lli") << "invalid optimization level.\n";
  439     WithColor::error(errs(), argv[0])
  455       WithColor::error(errs(), argv[0])
  458       WithColor::error(errs(), argv[0]) << "unknown error creating EE!\n";
  534     WithColor::warning(errs(), argv[0])
  561     WithColor::error(errs(), argv[0])
  581       WithColor::error(errs(), argv[0])
  585       WithColor::error(errs(), argv[0])
  629         WithColor::error(errs(), argv[0])
  634     WithColor::error(errs(), argv[0]) << "exit defined with wrong prototype!\n";
  646       WithColor::error(errs(), argv[0]) << "failed to launch remote JIT.\n";
tools/llvm-ar/llvm-ar.cpp
  133     WithColor::error(errs(), ToolName)
  136     WithColor::error(errs(), ToolName) << Error << "\n";
  627     WithColor::error(errs(), ToolName) << "'" << Name << "' was not found\n";
  986       WithColor::warning(errs(), ToolName)
tools/llvm-config/llvm-config.cpp
  585     WithColor::error(errs(), "llvm-config") << DyLibName << " is missing\n";
  618           WithColor::error(errs(), "llvm-config") << "missing: " << Lib << "\n";
  625         WithColor::error(errs(), "llvm-config")
  630           WithColor::error(errs(), "llvm-config") << "missing: " << Lib << "\n";
  713     WithColor::error(errs(), "llvm-config")
tools/llvm-cxxdump/llvm-cxxdump.cpp
   46   WithColor::error(outs(), "") << "reading file: " << EC.message() << ".\n";
   52   logAllUnhandledErrors(std::move(Err), WithColor::error(outs()),
   70   WithColor::error(errs(), Input) << Message << "\n";
tools/llvm-cxxmap/llvm-cxxmap.cpp
   47   WithColor::warning();
   53     WithColor::note() << Hint << "\n";
   58   WithColor::error();
   64     WithColor::note() << Hint << "\n";
tools/llvm-dis/llvm-dis.cpp
  130       case DS_Error: WithColor::error(OS); break;
  131       case DS_Warning: WithColor::warning(OS); break;
  133       case DS_Note: WithColor::note(OS); break;
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  232   WithColor::error() << Prefix << ": " << EC.message() << "\n";
  581     WithColor::error() << "incompatible arguments: specifying both -diff and "
tools/llvm-dwp/llvm-dwp.cpp
  733       logAllUnhandledErrors(DWOs.takeError(), WithColor::error());
  742     logAllUnhandledErrors(std::move(Err), WithColor::error());
tools/llvm-elfabi/ErrorCollector.cpp
   45     WithColor::error(OS) << "(" << Tags[i] << ") " << Errors[i];
tools/llvm-elfabi/llvm-elfabi.cpp
  124     WithColor::error() << ReadError << "\n";
  138       WithColor::error() << TBEWriteError << "\n";
tools/llvm-ifs/llvm-ifs.cpp
  361     WithColor::error(errs(), "llvm-ifs") << Msg << "\n";
  383   WithColor::error()
  412       WithColor::error() << StubOrErr.takeError() << "\n";
  427           WithColor::error()
  438         WithColor::error() << "Interface Stub: ObjectFileFormat Mismatch."
  446         WithColor::error() << "Interface Stub: Triple Mismatch."
  454         WithColor::error() << "Interface Stub: SOName Mismatch."
  462         WithColor::error() << "Interface Stub: NeededLibs Mismatch."
  481         WithColor::error() << "Interface Stub: Type Mismatch for "
  489         WithColor::error() << "Interface Stub: Size Mismatch for "
  498         WithColor::error() << "Interface Stub: Weak Mismatch for "
  513       WithColor::error() << "Interface Stub: Bad IfsVersion: "
  527     WithColor::error() << "Couldn't open " << OutputFilename
tools/llvm-link/llvm-link.cpp
  190       WithColor::error();
  195       WithColor::warning();
  241       WithColor::error() << "input module is broken!\n";
  286       WithColor::error() << " loading file '" << File << "'\n";
  295       WithColor::error() << "input module is broken!\n";
  386     WithColor::error() << EC.message() << '\n';
  392     WithColor::error() << "linked module is broken!\n";
tools/llvm-lipo/llvm-lipo.cpp
   34   WithColor::error(errs(), ToolName) << Message << "\n";
   45   WithColor::error(errs(), ToolName) << "'" << File << "': " << Buf;
tools/llvm-mc/llvm-mc.cpp
  203     WithColor::error(errs(), ProgName) << Error;
  217     WithColor::error() << EC.message() << '\n';
  266       WithColor::error() << "defsym must be of the form: sym=value: " << I
  272       WithColor::error() << "value is not an integer: " << Val << "\n";
  290     WithColor::error(errs(), ProgName)
  336     WithColor::error(errs(), ProgName)
  362       WithColor::error(errs(), ProgName)
  427       WithColor::error() << "dwo output only supported with object files\n";
  449       WithColor::error()
tools/llvm-mca/llvm-mca.cpp
  281     WithColor::error() << toString(Cycles.takeError());
  319     WithColor::error() << InputFilename << ": " << EC.message() << '\n';
  335     WithColor::error() << "please specify an out-of-order cpu. '" << MCPU
  341     WithColor::error()
  347       WithColor::note()
  384               WithColor::error() << E.getMessage() << '\n';
  387       WithColor::error() << toString(std::move(Err)) << '\n';
  398     WithColor::error() << "no assembly instructions found.\n";
  405     WithColor::error() << EC.message() << '\n';
  415     WithColor::error()
  476                   WithColor::error() << IE.Message << '\n';
  479                   WithColor::note()
  483           WithColor::error() << toString(std::move(NewE));
tools/llvm-mt/llvm-mt.cpp
   68   WithColor::error(errs(), "llvm-mt") << Msg << '\n';
tools/llvm-nm/llvm-nm.cpp
  226   WithColor::error(errs(), ToolName) << Path << ": " << Message << ".\n";
  243   WithColor::error(errs(), ToolName) << FileName;
  272   WithColor::error(errs(), ToolName) << FileName;
 1828             WithColor::warning(errs(), ToolName)
 2068       WithColor::warning(errs(), ToolName)
tools/llvm-objcopy/llvm-objcopy.cpp
   58   WithColor::error(errs(), ToolName) << Message << "\n";
   68   WithColor::error(errs(), ToolName) << Buf;
   83   WithColor::error(errs(), ToolName) << "'" << File << "': " << Buf;
   89   WithColor::warning(errs(), ToolName) << toString(std::move(E)) << '\n';
  341                           WithColor::error(errs(), ToolName));
  346       logAllUnhandledErrors(std::move(E), WithColor::error(errs(), ToolName));
tools/llvm-objdump/COFFDump.cpp
  601     WithColor::error(errs(), "llvm-objdump")
tools/llvm-objdump/MachODump.cpp
  227   WithColor::error(errs(), "llvm-objdump") << "unable to get target for '";
 1900     WithColor::error(errs(), "llvm-objdump")
 2307         WithColor::error(errs(), "llvm-objdump")
 2371       WithColor::error(errs(), "llvm-objdump")
 2450         WithColor::error(errs(), "llvm-objdump")
 7249     WithColor::error(errs(), "llvm-objdump")
 7291     WithColor::error(errs(), "llvm-objdump")
 7384           WithColor::error(errs(), "llvm-objdump")
 7416         WithColor::error(errs(), "llvm-objdump")
 7672             WithColor::warning(errs(), "llvm-objdump")
 7724             WithColor::warning(errs(), "llvm-objdump")
10471     WithColor::error()
10481     WithColor::error()
10491     WithColor::error()
10501     WithColor::error()
10511     WithColor::error()
tools/llvm-objdump/llvm-objdump.cpp
  411   WithColor::warning(errs(), ToolName)
  417   WithColor::error(errs(), ToolName) << "'" << File << "': " << Message << "\n";
  425   WithColor::error(errs(), ToolName);
  441   WithColor::warning(errs(), ToolName) << Message << "\n";
  445   WithColor::error(errs(), ToolName) << Message << "\n";
 1923     WithColor::error(errs(), ToolName)
 1932     WithColor::error(errs(), ToolName)
 1974     WithColor::error(errs(), ToolName)
 2046     WithColor::error(errs(), ToolName) << "ill-formed archive entry.\n";
tools/llvm-opt-report/OptReport.cpp
  152     WithColor::error() << "Can't open file " << InputFileName << ": "
  160       PE.log(WithColor::error());
  170       PE.log(WithColor::error());
  187         PE.log(WithColor::error());
  249     WithColor::error() << "Can't open file " << OutputFileName << ": "
  265       WithColor::error() << "Can't open file " << FileName << ": "
tools/llvm-profdata/llvm-profdata.cpp
   48   WithColor::warning();
   53     WithColor::note() << Hint << "\n";
   58   WithColor::error();
   63     WithColor::note() << Hint << "\n";
 1008     WithColor::warning() << "-show-sec-info-only is only supported for "
 1125     WithColor::warning() << "-function argument ignored: showing all functions\n";
tools/llvm-readobj/llvm-readobj.cpp
  370   WithColor::error(errs(), ToolName) << Msg << "\n";
  394         WithColor::warning(errs(), ToolName) << EI.message() << "\n";
tools/llvm-size/llvm-size.cpp
  112   WithColor::error(errs(), ToolName) << "'" << File << "': " << Message << "\n";
  121   WithColor::error(errs(), ToolName) << "'" << FileName << "'";
  149   WithColor::error(errs(), ToolName) << "'" << FileName << "'";
tools/llvm-undname/llvm-undname.cpp
   71     WithColor::error() << "Invalid mangled name\n";
   86       WithColor::error() << "Could not open input file \'" << RawFile
tools/yaml2obj/yaml2obj.cpp
   49     WithColor::error(errs(), "yaml2obj") << Msg << "\n";
usr/include/c++/7.4.0/ostream
  642     : __is_convertible_to_basic_ostream_impl<_Tp>
  646         typename __is_convertible_to_basic_ostream_impl<_Tp>::__ostream_type>>;
usr/include/c++/7.4.0/type_traits
 1629     { typedef _Tp   type; };
 1633     { typedef _Tp   type; };
utils/FileCheck/FileCheck.cpp
  452       WithColor COS(OS);
  482       WithColor COS(OS, AnnotationItr->Marker.Color, true);
utils/not/not.cpp
   37     WithColor::error() << "unable to find `" << argv[0]
   57     WithColor::error() << ErrMsg << "\n";