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

Declarations

include/llvm/ADT/Statistic.h
   44 class raw_fd_ostream;
include/llvm/ProfileData/InstrProfWriter.h
   31 class raw_fd_ostream;
tools/clang/include/clang/Frontend/CompilerInstance.h
   32 class raw_fd_ostream;
tools/dsymutil/MachOUtils.h
   20 class raw_fd_ostream;
unittests/DebugInfo/DWARF/DwarfGenerator.h
   41 class raw_fd_ostream;

References

examples/BrainF/BrainFDriver.cpp
  129       out = new raw_fd_ostream(OutputFilename, EC, sys::fs::OF_None);
examples/Kaleidoscope/Chapter8/toy.cpp
 1248   raw_fd_ostream dest(Filename, EC, sys::fs::OF_None);
include/llvm/ADT/Optional.h
   39     T value;
   72   T &getValue() LLVM_LVALUE_FUNCTION noexcept {
   76   T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
   81   T &&getValue() && noexcept {
   87   template <class... Args> void emplace(Args &&... args) {
   89     ::new ((void *)std::addressof(value)) T(std::forward<Args>(args)...);
  216   optional_detail::OptionalStorage<T> Storage;
  219   using value_type = T;
  224   Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
  227   Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
  230   Optional &operator=(T &&y) {
  237   template <typename... ArgTypes> void emplace(ArgTypes &&... Args) {
  241   static inline Optional create(const T *y) {
  245   Optional &operator=(const T &y) {
  253   const T *getPointer() const { return &Storage.getValue(); }
  254   T *getPointer() { return &Storage.getValue(); }
  255   const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  256   T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
  260   const T *operator->() const { return getPointer(); }
  261   T *operator->() { return getPointer(); }
  262   const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
  263   T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
  266   constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
  271   T &&getValue() && { return std::move(Storage.getValue()); }
  272   T &&operator*() && { return std::move(Storage.getValue()); }
  275   T getValueOr(U &&value) && {
include/llvm/ADT/Statistic.h
  182 std::unique_ptr<raw_fd_ostream> CreateInfoOutputFile();
include/llvm/Analysis/DOTGraphTraitsPass.h
  102     raw_fd_ostream File(Filename, EC, sys::fs::OF_Text);
  165     raw_fd_ostream File(Filename, EC, sys::fs::OF_Text);
include/llvm/LTO/LTO.h
  249                                           raw_fd_ostream *LinkedObjectsFile,
include/llvm/MC/MCContext.h
  137     std::unique_ptr<raw_fd_ostream> SecureLog;
  665     raw_fd_ostream *getSecureLog() { return SecureLog.get(); }
  667     void setSecureLog(std::unique_ptr<raw_fd_ostream> Value) {
include/llvm/Object/SymbolicFile.h
   46 OStream& operator<<(OStream &OS, const DataRefImpl &D) {
   46 OStream& operator<<(OStream &OS, const DataRefImpl &D) {
include/llvm/ProfileData/InstrProf.h
  626   void dump(raw_fd_ostream &OS) const;
include/llvm/ProfileData/InstrProfWriter.h
   64   void write(raw_fd_ostream &OS);
   67   Error writeText(raw_fd_ostream &OS);
   72                                 InstrProfSymtab &Symtab, raw_fd_ostream &OS);
include/llvm/Support/GraphWriter.h
  328 std::string WriteGraph(const GraphType &G, const Twine &Name,
  349   raw_fd_ostream O(FD, /*shouldClose=*/ true);
include/llvm/Support/TarWriter.h
   27   raw_fd_ostream OS;
include/llvm/Support/ToolOutputFile.h
   42   raw_fd_ostream OS;
   53   raw_fd_ostream &os() { return OS; }
include/llvm/Support/type_traits.h
   91     T t;
  145       std::is_copy_constructible<detail::trivial_helper<T>>::value;
  147       !std::is_copy_constructible<T>::value;
  151       std::is_move_constructible<detail::trivial_helper<T>>::value;
  153       !std::is_move_constructible<T>::value;
  157       is_copy_assignable<detail::trivial_helper<T>>::value;
  159       !is_copy_assignable<T>::value;
  163       is_move_assignable<detail::trivial_helper<T>>::value;
  165       !is_move_assignable<T>::value;
  169       std::is_destructible<detail::trivial_helper<T>>::value;
lib/Analysis/CFGPrinter.cpp
  102   raw_fd_ostream File(Filename, EC, sys::fs::OF_Text);
lib/Analysis/ModuleSummaryAnalysis.cpp
  816     raw_fd_ostream OSDot(ModuleSummaryDotFile, EC, sys::fs::OpenFlags::OF_None);
lib/Bitcode/Writer/BitWriter.cpp
   22   raw_fd_ostream OS(Path, EC, sys::fs::OF_None);
   33   raw_fd_ostream OS(FD, ShouldClose, Unbuffered);
lib/CodeGen/RegAllocPBQP.cpp
  851         raw_fd_ostream OS(GraphFileName, EC, sys::fs::OF_Text);
lib/DebugInfo/GSYM/GsymCreator.cpp
   46   raw_fd_ostream OutStrm(Path, EC);
lib/IR/Core.cpp
  398   raw_fd_ostream dest(Filename, EC, sys::fs::OF_Text);
lib/LTO/Caching.cpp
  146           std::make_unique<raw_fd_ostream>(Temp->FD, /* ShouldClose */ false),
lib/LTO/LTO.cpp
 1194   raw_fd_ostream *LinkedObjectsFile;
 1202       raw_fd_ostream *LinkedObjectsFile, lto::IndexWriteCallback OnWrite)
 1226     raw_fd_ostream OS(NewModulePath + ".thinlto.bc", EC,
 1250     raw_fd_ostream *LinkedObjectsFile, IndexWriteCallback OnWrite) {
lib/LTO/LTOBackend.cpp
   61   ResolutionFile = std::make_unique<raw_fd_ostream>(
   87       raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::OF_None);
  107     raw_fd_ostream OS(Path, EC, sys::fs::OpenFlags::OF_None);
  115     raw_fd_ostream OSDot(Path, EC, sys::fs::OpenFlags::OF_None);
lib/LTO/ThinLTOCodeGenerator.cpp
   94   raw_fd_ostream OS(SaveTempPath, EC, sys::fs::OF_None);
  887   raw_fd_ostream OS(OutputPath, Err, sys::fs::OF_None);
  942     raw_fd_ostream OS(SaveTempPath, EC, sys::fs::OF_None);
lib/MC/MCParser/DarwinAsmParser.cpp
  778   raw_fd_ostream *OS = getContext().getSecureLog();
  781     auto NewOS = std::make_unique<raw_fd_ostream>(
lib/Object/ArchiveWriter.cpp
  612   raw_fd_ostream Out(Temp->FD, false);
lib/ProfileData/GCOV.cpp
  709       std::make_unique<raw_fd_ostream>(CoveragePath, EC, sys::fs::OF_Text);
lib/ProfileData/InstrProf.cpp
 1211 void OverlapStats::dump(raw_fd_ostream &OS) const {
lib/ProfileData/InstrProfWriter.cpp
   50   ProfOStream(raw_fd_ostream &FD)
   65       raw_fd_ostream &FDOStream = static_cast<raw_fd_ostream &>(OS);
  377 void InstrProfWriter::write(raw_fd_ostream &OS) {
  401                                         raw_fd_ostream &OS) {
  439 Error InstrProfWriter::writeText(raw_fd_ostream &OS) {
lib/ProfileData/SampleProfWriter.cpp
  331   auto &OFS = static_cast<raw_fd_ostream &>(OS);
  422   auto &OFS = static_cast<raw_fd_ostream &>(*OutputStream);
  571     OS.reset(new raw_fd_ostream(Filename, EC, sys::fs::OF_None));
  573     OS.reset(new raw_fd_ostream(Filename, EC, sys::fs::OF_Text));
lib/Support/CachePruning.cpp
   48   raw_fd_ostream Out(TimestampFile.str(), EC, sys::fs::OF_None);
lib/Support/FileCollector.cpp
  182   raw_fd_ostream os(mapping_file, EC, sys::fs::OF_Text);
lib/Support/FileOutputBuffer.cpp
  104     raw_fd_ostream OS(FD, /*shouldClose=*/true, /*unbuffered=*/true);
lib/Support/FileUtilities.cpp
  309   raw_fd_ostream OS(TempFD, /*shouldClose=*/true);
lib/Support/LockFileManager.cpp
  193     raw_fd_ostream Out(UniqueLockFileID, /*shouldClose=*/true);
lib/Support/Signals.cpp
  151     raw_fd_ostream Input(InputFD, true);
lib/Support/TarWriter.cpp
   82 static void pad(raw_fd_ostream &OS) {
  101 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) {
  147 static void writeUstarHeader(raw_fd_ostream &OS, StringRef Prefix,
lib/Support/Timer.cpp
   58 std::unique_ptr<raw_fd_ostream> llvm::CreateInfoOutputFile() {
   61     return std::make_unique<raw_fd_ostream>(2, false); // stderr.
   63     return std::make_unique<raw_fd_ostream>(1, false); // stdout.
   70   auto Result = std::make_unique<raw_fd_ostream>(
   77   return std::make_unique<raw_fd_ostream>(2, false); // stderr.
lib/Support/Unix/Program.inc
  447   llvm::raw_fd_ostream OS(FileName, EC, llvm::sys::fs::OpenFlags::OF_Text);
lib/Support/raw_ostream.cpp
  875   static raw_fd_ostream S("-", EC, sys::fs::OF_None);
  884   static raw_fd_ostream S(STDERR_FILENO, false, true);
lib/Target/TargetMachineC.cpp
  222   raw_fd_ostream dest(Filename, EC, sys::fs::OF_None);
lib/Transforms/IPO/FunctionImport.cpp
  898   raw_fd_ostream ImportsOS(OutputFilename, EC, sys::fs::OpenFlags::OF_None);
lib/Transforms/IPO/LowerTypeTests.cpp
 1692     raw_fd_ostream OS(ClWriteSummary, EC, sys::fs::OF_Text);
lib/Transforms/IPO/WholeProgramDevirt.cpp
  768     raw_fd_ostream OS(ClWriteSummary, EC, sys::fs::OF_Text);
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  680     raw_fd_ostream out(mangleName(CU, GCovFileType::GCNO), EC,
lib/Transforms/Instrumentation/InstrOrderFile.cpp
  103       llvm::raw_fd_ostream OS(ClOrderFileWriteMapping, EC,
tools/bugpoint/ExtractFunction.cpp
  392   raw_fd_ostream OS(Temp->FD, /*shouldClose*/ false);
tools/bugpoint/OptimizerDriver.cpp
   70   raw_fd_ostream OS(FD, /*shouldClose*/ false);
  156   raw_fd_ostream OS(Temp->FD, /*shouldClose*/ false);
tools/clang/include/clang/Frontend/CompilerInstance.h
  181   std::unique_ptr<llvm::raw_fd_ostream> NonSeekStream;
tools/clang/lib/ARCMigrate/FileRemapper.cpp
  124   llvm::raw_fd_ostream infoOut(infoFile, EC, llvm::sys::fs::OF_None);
  150       llvm::raw_fd_ostream newOut(fd, /*shouldClose=*/true);
  180     llvm::raw_fd_ostream Out(origFE->getName(), EC, llvm::sys::fs::OF_None);
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 1954    llvm::raw_fd_ostream OS(MigrateDir, EC, llvm::sys::fs::OF_None);
 2223   llvm::raw_fd_ostream TmpOut(FD, /*shouldClose=*/true);
tools/clang/lib/ARCMigrate/PlistReporter.cpp
   59   llvm::raw_fd_ostream o(outPath, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/AST/InheritViz.cpp
  149   llvm::raw_fd_ostream O(FD, true);
tools/clang/lib/Driver/Compilation.cpp
  156     std::unique_ptr<llvm::raw_fd_ostream> OwnedStream;
  162       OwnedStream.reset(new llvm::raw_fd_ostream(
tools/clang/lib/Driver/Driver.cpp
 1389   llvm::raw_fd_ostream ScriptOS(Script, EC, llvm::sys::fs::CD_CreateNew);
tools/clang/lib/Driver/ToolChains/Clang.cpp
 1924     auto File = std::make_unique<llvm::raw_fd_ostream>(Filename, EC,
 1933   auto &CDB = *CompilationDatabase;
 2005       std::make_unique<llvm::raw_fd_ostream>(FD, /*shouldClose=*/true);
tools/clang/lib/Driver/ToolChains/Clang.h
   92   mutable std::unique_ptr<llvm::raw_fd_ostream> CompilationDatabase = nullptr;
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
 1357   llvm::raw_fd_ostream Lksf(LKS, EC, llvm::sys::fs::OF_None);
tools/clang/lib/Frontend/CompilerInstance.cpp
  226     auto FileOS = std::make_unique<llvm::raw_fd_ostream>(
  727   std::unique_ptr<llvm::raw_fd_ostream> OS;
  776       OS.reset(new llvm::raw_fd_ostream(fd, /*shouldClose=*/true));
  786     OS.reset(new llvm::raw_fd_ostream(
 1009     auto StatS = std::make_unique<llvm::raw_fd_ostream>(
 1392   llvm::raw_fd_ostream Out(TimestampFile.str(), EC, llvm::sys::fs::OF_None);
tools/clang/lib/Frontend/DependencyFile.cpp
  314   llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/Frontend/DependencyGraph.cpp
  103   llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/Frontend/FrontendActions.cpp
  700   std::unique_ptr<llvm::raw_fd_ostream> OutFile;
  704     OutFile.reset(new llvm::raw_fd_ostream(OutputFileName.str(), EC,
tools/clang/lib/Frontend/HeaderIncludeGen.cpp
  102     llvm::raw_fd_ostream *OS = new llvm::raw_fd_ostream(
  102     llvm::raw_fd_ostream *OS = new llvm::raw_fd_ostream(
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp
  151   llvm::raw_fd_ostream OS(YAMLPath, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp
  100     std::unique_ptr<llvm::raw_fd_ostream> OS;
  102       OS.reset(new llvm::raw_fd_ostream(fd, /*shouldClose=*/true));
  104       OS.reset(new llvm::raw_fd_ostream(Filename, EC, llvm::sys::fs::OF_None));
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  783   auto OS = std::make_unique<llvm::raw_fd_ostream>(State->OutputFile.c_str(),
tools/clang/lib/Rewrite/Rewriter.cpp
  433       FileStream.reset(new llvm::raw_fd_ostream(FD, /*shouldClose=*/true));
  459   std::unique_ptr<llvm::raw_fd_ostream> FileStream;
tools/clang/lib/Serialization/ASTReader.cpp
 4104   llvm::raw_fd_ostream OS(TimestampFilename, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  261   llvm::raw_fd_ostream os(FD, true);
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  179                           llvm::raw_fd_ostream &o);
  496                           llvm::raw_fd_ostream &o) {
  648   llvm::raw_fd_ostream o(OutputFile, EC, llvm::sys::fs::OF_Text);
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
  345   llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_Text);
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  142   virtual Error ReadBundle(raw_fd_ostream &OS, MemoryBuffer &Input) = 0;
  146   virtual Error WriteHeader(raw_fd_ostream &OS,
  151   virtual Error WriteBundleStart(raw_fd_ostream &OS,
  156   virtual Error WriteBundleEnd(raw_fd_ostream &OS, StringRef TargetTriple) = 0;
  159   virtual Error WriteBundle(raw_fd_ostream &OS, MemoryBuffer &Input) = 0;
  199 static void Write8byteIntegerToBuffer(raw_fd_ostream &OS, uint64_t Val) {
  311   Error ReadBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  319   Error WriteHeader(raw_fd_ostream &OS,
  353   Error WriteBundleStart(raw_fd_ostream &OS, StringRef TargetTriple) final {
  357   Error WriteBundleEnd(raw_fd_ostream &OS, StringRef TargetTriple) final {
  361   Error WriteBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  434   Error ReadBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  443   Error WriteHeader(raw_fd_ostream &OS,
  452   Error WriteBundleStart(raw_fd_ostream &OS, StringRef TargetTriple) final {
  457   Error WriteBundleEnd(raw_fd_ostream &OS, StringRef TargetTriple) final {
  506   Error WriteBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  572   Error ReadBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  585   Error WriteHeader(raw_fd_ostream &OS,
  590   Error WriteBundleStart(raw_fd_ostream &OS, StringRef TargetTriple) final {
  595   Error WriteBundleEnd(raw_fd_ostream &OS, StringRef TargetTriple) final {
  600   Error WriteBundle(raw_fd_ostream &OS, MemoryBuffer &Input) final {
  669   raw_fd_ostream OutputFile(OutputFileNames.front(), EC, sys::fs::OF_None);
  767     raw_fd_ostream OutputFile(Output->second, EC, sys::fs::OF_None);
  786       raw_fd_ostream OutputFile(E.second, EC, sys::fs::OF_None);
  806     raw_fd_ostream OutputFile(E.second, EC, sys::fs::OF_None);
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  502         llvm::raw_fd_ostream OS(File, EC, llvm::sys::fs::OF_Text);
tools/clang/tools/clang-rename/ClangRename.cpp
  191       llvm::raw_fd_ostream OS(ExportFixes, EC, llvm::sys::fs::OF_None);
tools/clang/tools/driver/cc1as_main.cpp
  310 static std::unique_ptr<raw_fd_ostream>
  318   auto Out = std::make_unique<raw_fd_ostream>(
  370   std::unique_ptr<raw_fd_ostream> FDOS =
  374   std::unique_ptr<raw_fd_ostream> DwoOS;
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
  155     llvm::raw_fd_ostream FileStream(FileName, EC, llvm::sys::fs::OF_None);
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
  892   llvm::raw_fd_ostream OS(FilePath, FileErr, llvm::sys::fs::OF_None);
  941   llvm::raw_fd_ostream IndexOS(IndexPath, FileErr, llvm::sys::fs::OF_None);
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  305       llvm::raw_fd_ostream InfoOS(InfoPath.get(), FileErr,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
   73     llvm::raw_fd_ostream OS(FD, /*shouldClose=*/true);
  117   llvm::raw_fd_ostream OS(OutputFile, EC, llvm::sys::fs::OF_None);
tools/clang/tools/extra/clang-tidy/ClangTidyProfiling.cpp
   69   llvm::raw_fd_ostream OS(Storage->StoreFilename, EC, llvm::sys::fs::OF_None);
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  447     llvm::raw_fd_ostream OS(ExportFixes, EC, llvm::sys::fs::OF_None);
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
  486   llvm::Optional<llvm::raw_fd_ostream> InputMirrorStream;
  503   llvm::Optional<llvm::raw_fd_ostream> TraceStream;
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
  226       llvm::raw_fd_ostream OS(AbsPath, EC);
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
   49   bool output(llvm::raw_fd_ostream &OS, int Indent);
   78 bool Module::output(llvm::raw_fd_ostream &OS, int Indent) {
  279   llvm::raw_fd_ostream &OS = Out.os();
tools/clang/tools/libclang/CIndexer.cpp
  167   llvm::raw_fd_ostream OS(FD, /*ShouldClose=*/true);
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
  375     llvm::raw_fd_ostream bStream(fixture.getPathInWatched("a"), error,
tools/clang/unittests/Tooling/RefactoringTest.cpp
  608     llvm::raw_fd_ostream OutStream(FD, true);
tools/clang/unittests/Tooling/RewriterTestContext.h
   73     llvm::raw_fd_ostream OutStream(FD, true);
tools/dsymutil/DwarfLinker.cpp
  238                                  raw_fd_ostream &OutFile) {
 2859 bool linkDwarf(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
tools/dsymutil/DwarfLinker.h
   58   DwarfLinker(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
  459   bool createStreamer(const Triple &TheTriple, raw_fd_ostream &OutFile);
  466   raw_fd_ostream &OutFile;
tools/dsymutil/DwarfStreamer.h
   46   DwarfStreamer(raw_fd_ostream &OutFile, LinkOptions Options)
  165   raw_fd_ostream &OutFile;
tools/dsymutil/MachOUtils.cpp
  336                            MCStreamer &MS, raw_fd_ostream &OutFile) {
tools/dsymutil/MachOUtils.h
   44                            MCStreamer &MS, raw_fd_ostream &OutFile);
tools/dsymutil/dsymutil.cpp
  280   raw_fd_ostream PL(InfoPlist, EC, sys::fs::OF_Text);
  557       std::shared_ptr<raw_fd_ostream> OS;
  578         OS = std::make_shared<raw_fd_ostream>(TempFile.FD,
  583         OS = std::make_shared<raw_fd_ostream>(
tools/dsymutil/dsymutil.h
   48 bool linkDwarf(raw_fd_ostream &OutFile, BinaryHolder &BinHolder,
tools/gold/gold-plugin.cpp
  840                                       raw_fd_ostream *LinkedObjectsFile) {
  889       raw_fd_ostream OS(output_name, EC, sys::fs::OpenFlags::OF_None);
  949     raw_fd_ostream OS(NewModulePath + ".thinlto.bc", EC,
  962     raw_fd_ostream OS(NewModulePath + ".imports", EC,
  972 static std::unique_ptr<raw_fd_ostream> CreateLinkedObjectsFile() {
  977   auto LinkedObjectsFile = std::make_unique<raw_fd_ostream>(
  997   std::unique_ptr<raw_fd_ostream> LinkedObjects = CreateLinkedObjectsFile();
 1050         std::make_unique<llvm::raw_fd_ostream>(FD, true));
tools/lld/COFF/DriverUtils.cpp
  325       raw_fd_ostream os(path, ec, sys::fs::OF_None);
  413   raw_fd_ostream os(Default.path, ec, sys::fs::OF_Text);
  514   raw_fd_ostream out(path, ec, sys::fs::OF_Text);
tools/lld/COFF/LTO.cpp
   46 static std::unique_ptr<raw_fd_ostream> openFile(StringRef file) {
   49       std::make_unique<raw_fd_ostream>(file, ec, sys::fs::OpenFlags::OF_None);
tools/lld/COFF/LTO.h
   54   std::unique_ptr<llvm::raw_fd_ostream> indexFile;
tools/lld/COFF/MapFile.cpp
   95   raw_fd_ostream os(config->mapFile, ec, sys::fs::OF_None);
tools/lld/COFF/MinGW.cpp
  152   raw_fd_ostream os(name, ec, sys::fs::OF_None);
tools/lld/Common/Strings.cpp
   77   raw_fd_ostream os(path.str(), ec, sys::fs::OpenFlags::OF_None);
tools/lld/ELF/CallGraphSort.cpp
  237     raw_fd_ostream os(config->printSymbolOrder, ec, sys::fs::OF_None);
tools/lld/ELF/LTO.cpp
   50 static std::unique_ptr<raw_fd_ostream> openFile(StringRef file) {
   53       std::make_unique<raw_fd_ostream>(file, ec, sys::fs::OpenFlags::OF_None);
  116       if (std::unique_ptr<raw_fd_ostream> os = openFile(config->outputFile))
  221     std::unique_ptr<raw_fd_ostream> os = openFile(path + ".thinlto.bc");
tools/lld/ELF/LTO.h
   56   std::unique_ptr<llvm::raw_fd_ostream> indexFile;
tools/lld/ELF/MapFile.cpp
  147   raw_fd_ostream os(config->mapFile, ec, sys::fs::OF_None);
tools/lld/include/lld/ReaderWriter/MachOLinkingContext.h
  498   std::unique_ptr<llvm::raw_fd_ostream> _dependencyInfo;
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  888 static void addDependencyInfoHelper(llvm::raw_fd_ostream *DepInfo,
  901       new llvm::raw_fd_ostream(path, ec, llvm::sys::fs::OF_None));
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
 1302     llvm::raw_fd_ostream out(outPath, ec, llvm::sys::fs::OF_Text);
tools/lldb/include/lldb/Utility/Reproducer.h
  183   llvm::raw_fd_ostream m_os;
  230   std::unique_ptr<llvm::raw_fd_ostream> m_stream_up;
tools/lldb/source/API/SBReproducerPrivate.h
   53   llvm::raw_fd_ostream m_stream;
tools/lldb/source/Core/Debugger.cpp
 1170     log_stream_sp = std::make_shared<llvm::raw_fd_ostream>(
 1187           std::make_shared<llvm::raw_fd_ostream>(FD, should_close, unbuffered);
tools/lldb/source/Expression/IRExecutionUnit.cpp
  306       llvm::raw_fd_ostream fds(fd, true);
tools/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp
   52   llvm::raw_fd_ostream os(error_fd, true);
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  413   llvm::raw_fd_ostream dst(output_filename, EC, llvm::sys::fs::OF_None);
  440   llvm::raw_fd_ostream dst(local_file_path, EC, llvm::sys::fs::OF_None);
tools/lldb/source/Target/Platform.cpp
 1631   llvm::raw_fd_ostream dst(dst_file_spec.GetPath(), EC, llvm::sys::fs::OF_None);
tools/lldb/source/Utility/Reproducer.cpp
  188   auto strm = std::make_unique<raw_fd_ostream>(index.GetPath(), EC,
  268   llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text);
  280   llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text);
  289   llvm::raw_fd_ostream os(file.GetPath(), ec, llvm::sys::fs::OF_Text);
  299   m_stream_up = std::make_unique<raw_fd_ostream>(history_file.GetPath(), EC,
tools/lldb/tools/lldb-server/LLDBServerUtilities.cpp
   26     std::shared_ptr<raw_ostream> stream_sp = std::make_shared<raw_fd_ostream>(
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   40     llvm::raw_fd_ostream OS(FD, /*shouldClose*/ true);
tools/lli/lli.cpp
  254     raw_fd_ostream outfile(CacheName, EC, sys::fs::OF_None);
  729       raw_fd_ostream Out(M.getModuleIdentifier() + ".ll", EC, sys::fs::OF_Text);
tools/llvm-ar/llvm-ar.cpp
  540     raw_fd_ostream file(FD, false);
tools/llvm-cat/llvm-cat.cpp
   88   raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None);
tools/llvm-cov/SourceCoverageView.cpp
   68       new raw_fd_ostream(FullPath, E, sys::fs::FA_Read | sys::fs::FA_Write);
tools/llvm-cov/TestingSupport.cpp
   97   raw_fd_ostream OS(FD, true);
tools/llvm-cxxmap/llvm-cxxmap.cpp
  148   raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_Text);
tools/llvm-elfabi/llvm-elfabi.cpp
   59   raw_fd_ostream Out(FilePath, SysErr);
tools/llvm-exegesis/lib/BenchmarkResult.cpp
  408     raw_fd_ostream Ostr(ResultFD, true /*shouldClose*/);
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  165   raw_fd_ostream OFS(ResultFD, true /*ShouldClose*/);
tools/llvm-exegesis/llvm-exegesis.cpp
  308   raw_fd_ostream ClustersOS(OutputFilename, ErrorCode,
tools/llvm-ifs/llvm-ifs.cpp
  525   raw_fd_ostream Out(OutputFilename, SysErr);
tools/llvm-lto/llvm-lto.cpp
  422   raw_fd_ostream OS(OutputFilename + ".thinlto.bc", EC,
  513   raw_fd_ostream OS(Filename, EC, sys::fs::OpenFlags::OF_None);
  584     raw_fd_ostream OS(OutputFilename, EC, sys::fs::OpenFlags::OF_None);
  622       raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::OF_None);
  805       raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::OF_None);
  851       raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::OF_None);
tools/llvm-lto2/llvm-lto2.cpp
  336     auto S = std::make_unique<raw_fd_ostream>(Path, EC, sys::fs::OF_None);
tools/llvm-opt-report/OptReport.cpp
  247   llvm::raw_fd_ostream OS(OutputFileName, EC, llvm::sys::fs::OF_Text);
tools/llvm-profdata/llvm-profdata.cpp
  203                          raw_fd_ostream &OS, bool IsCS) {
  366   raw_fd_ostream Output(OutputFilename.data(), EC, sys::fs::OF_None);
  699                                 raw_fd_ostream &OS, bool IsCS) {
  743   raw_fd_ostream OS(Output.data(), EC, sys::fs::OF_Text);
  765                                   ValueSitesStats &Stats, raw_fd_ostream &OS,
  798 static void showValueSitesStats(raw_fd_ostream &OS, uint32_t VK,
  819                             raw_fd_ostream &OS) {
 1006                             raw_fd_ostream &OS) {
 1019                              bool ShowSectionInfoOnly, raw_fd_ostream &OS) {
 1120   raw_fd_ostream OS(OutputFilename.data(), EC, sys::fs::OF_Text);
tools/llvm-rc/ResourceFileWriter.h
   46                      std::unique_ptr<raw_fd_ostream> Stream)
  173   std::unique_ptr<raw_fd_ostream> FS;
tools/llvm-rc/llvm-rc.cpp
  179     auto FOut = std::make_unique<raw_fd_ostream>(
tools/llvm-reduce/llvm-reduce.cpp
  103       raw_fd_ostream Out(OutputFilename, EC);
tools/llvm-xray/xray-account.cpp
  424   raw_fd_ostream OS(AccountOutput, EC, sys::fs::OpenFlags::OF_Text);
tools/llvm-xray/xray-converter.cpp
  388   raw_fd_ostream OS(ConvertOutput, EC,
tools/llvm-xray/xray-extract.cpp
   83   raw_fd_ostream OS(ExtractOutput, EC, sys::fs::OpenFlags::OF_Text);
tools/llvm-xray/xray-graph-diff.cpp
  473   raw_fd_ostream OS(GraphDiffOutput, EC, sys::fs::OpenFlags::OF_Text);
tools/llvm-xray/xray-graph.cpp
  509   raw_fd_ostream OS(GraphOutput, EC, sys::fs::OpenFlags::OF_Text);
tools/opt/Debugify.cpp
  400   raw_fd_ostream OS{Path, EC};
tools/verify-uselistorder/verify-uselistorder.cpp
  126   raw_fd_ostream OS(Filename, EC, sys::fs::OF_None);
  139   raw_fd_ostream OS(Filename, EC, sys::fs::OF_Text);
unittests/BinaryFormat/TestFileMagic.cpp
  131     raw_fd_ostream file(file_pathname, EC, sys::fs::OF_None);
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  534   raw_fd_ostream Strm(Path, EC, sys::fs::OF_None);
unittests/ProfileData/SampleProfTest.cpp
   47         new raw_fd_ostream(Profile, EC, sys::fs::OF_None));
   67     std::unique_ptr<raw_fd_ostream> OS(
   68         new raw_fd_ostream(RemapFile, EC, sys::fs::OF_None));
unittests/Support/MemoryBufferTest.cpp
  105   raw_fd_ostream OF(FD, /*shouldClose*/ true);
  136   raw_fd_ostream OF(TestFD, true, /*unbuffered=*/true);
  234   raw_fd_ostream OF(TestFD, true, !Reopen);
  281   raw_fd_ostream OF(FD, true, /*unbuffered=*/true);
  329   raw_fd_ostream OF(FD, true);
  362   raw_fd_ostream OF(FD, true);
unittests/Support/ReplaceFileTest.cpp
   37   raw_fd_ostream OS(FD, ShouldClose);
unittests/Support/SpecialCaseListTest.cpp
   38     raw_fd_ostream OF(FD, true, true);
unittests/Support/VirtualFileSystemTest.cpp
  463     raw_fd_ostream OS(this->Path, EC);
unittests/Support/raw_pwrite_stream_test.cpp
   69   raw_fd_ostream OS(FD, true);
   87   raw_fd_ostream OS(FD, true);
unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
   47       raw_fd_ostream FOS(Filename, EC);
usr/include/c++/7.4.0/bits/alloc_traits.h
  387       using allocator_type = allocator<_Tp>;
  389       using value_type = _Tp;
  392       using pointer = _Tp*;
  395       using const_pointer = const _Tp*;
  474 	construct(allocator_type& __a, _Up* __p, _Args&&... __args)
  486 	destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h
  108     class allocator: public __allocator_base<_Tp>
  113       typedef _Tp*       pointer;
  114       typedef const _Tp* const_pointer;
  115       typedef _Tp&       reference;
  116       typedef const _Tp& const_reference;
  117       typedef _Tp        value_type;
  137 	allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h
   46     inline _GLIBCXX_CONSTEXPR _Tp*
   47     __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
   72     constexpr _Tp&&
   83     constexpr _Tp&&
  136     inline _GLIBCXX17_CONSTEXPR _Tp*
  137     addressof(_Tp& __r) noexcept
  143     const _Tp* addressof(const _Tp&&) = delete;
  143     const _Tp* addressof(const _Tp&&) = delete;
usr/include/c++/7.4.0/bits/shared_ptr.h
   93     class shared_ptr : public __shared_ptr<_Tp>
  107       using element_type = typename __shared_ptr<_Tp>::element_type;
  236 	shared_ptr(const shared_ptr<_Yp>& __r) noexcept
  253 	shared_ptr(shared_ptr<_Yp>&& __r) noexcept
  299 	_Assignable<const shared_ptr<_Yp>&>
  300 	operator=(const shared_ptr<_Yp>& __r) noexcept
  324 	_Assignable<shared_ptr<_Yp>>
  325 	operator=(shared_ptr<_Yp>&& __r) noexcept
  352       shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
  687     inline shared_ptr<_Tp>
  702     inline shared_ptr<_Tp>
  705       typedef typename std::remove_const<_Tp>::type _Tp_nc;
  706       return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
usr/include/c++/7.4.0/bits/shared_ptr_base.h
  882     : is_convertible<_Yp*, _Tp*>::type
  882     : is_convertible<_Yp*, _Tp*>::type
  956       using element_type = _Tp;
 1035     : public __shared_ptr_access<_Tp, _Lp>
 1038       using element_type = typename remove_extent<_Tp>::type;
 1126 	__shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept
 1138 	__shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept
 1192 	_Assignable<_Yp>
 1193 	operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept
 1218 	_Assignable<_Yp>
 1219 	operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept
 1272       swap(__shared_ptr<_Tp, _Lp>& __other) noexcept
 1321 	    rebind_traits<typename std::remove_cv<_Tp>::type> __traits;
 1344       __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t)
 1377 	typename enable_if<!__has_esft_base<_Yp2>::value>::type
 1378 	_M_enable_shared_from_this_with(_Yp*) noexcept
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  297           __safe_conversion_up<_Up, _Ep>,
  301 	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
  811     { typedef unique_ptr<_Tp> __single_object; };
  823     inline typename _MakeUniq<_Tp>::__single_object
  824     make_unique(_Args&&... __args)
  825     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/ext/new_allocator.h
   63       typedef _Tp*       pointer;
   64       typedef const _Tp* const_pointer;
   65       typedef _Tp&       reference;
   66       typedef const _Tp& const_reference;
   67       typedef _Tp        value_type;
   84 	new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
  111 	return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
  130       { return size_t(-1) / sizeof(_Tp); }
  135 	construct(_Up* __p, _Args&&... __args)
  136 	{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
  140 	destroy(_Up* __p) { __p->~_Up(); }
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
  984       typedef decltype(__test<_Tp, _Arg>(0)) type;
  989     : public __and_<is_destructible<_Tp>,
  990                     __is_direct_constructible_impl<_Tp, _Arg>>
 1072 			 __is_direct_constructible_ref_cast<_Tp, _Arg>,
 1073 			 __is_direct_constructible_new_safe<_Tp, _Arg>
 1079     : public __is_direct_constructible_new<_Tp, _Arg>::type
 1119     : public __is_direct_constructible<_Tp, _Arg>
 1130     : public __is_constructible_impl<_Tp, _Args...>::type
 1142     : public is_constructible<_Tp, const _Tp&>
 1142     : public is_constructible<_Tp, const _Tp&>
 1148     : public __is_copy_constructible_impl<_Tp>
 1160     : public is_constructible<_Tp, _Tp&&>
 1160     : public is_constructible<_Tp, _Tp&&>
 1166     : public __is_move_constructible_impl<_Tp>
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1633     { typedef _Tp   type; };
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
 1659     { typedef _Tp&&   type; };
 1942     { typedef _Tp     type; };
 1955     { typedef _Tp     type; };