LLVM 20.0.0git
Classes | Namespaces | Functions
raw_ostream.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <optional>
#include <string>
#include <string_view>
#include <system_error>
#include <type_traits>

Go to the source code of this file.

Classes

class  llvm::raw_ostream
 This class implements an extremely fast bulk output stream that can only output to a stream. More...
 
class  llvm::raw_pwrite_stream
 An abstract base class for streams implementations that also support a pwrite operation. More...
 
class  llvm::raw_fd_ostream
 A raw_ostream that writes to a file descriptor. More...
 
class  llvm::raw_fd_stream
 A raw_ostream of a file for reading/writing/seeking. More...
 
class  llvm::raw_string_ostream
 A raw_ostream that writes to an std::string. More...
 
class  llvm::raw_svector_ostream
 A raw_ostream that writes to an SmallVector or SmallString. More...
 
class  llvm::raw_null_ostream
 A raw_ostream that discards all output. More...
 
class  llvm::buffer_ostream
 
class  llvm::buffer_unique_ostream
 
struct  llvm::indent
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::sys
 
namespace  llvm::sys::fs
 

Functions

template<typename OStream , typename T >
std::enable_if_t<!std::is_reference_v< OStream > &&std::is_base_of_v< raw_ostream, OStream >, OStream && > llvm::operator<< (OStream &&OS, const T &Value)
 Call the appropriate insertion operator, given an rvalue reference to a raw_ostream object and return a stream of the same type as the argument.
 
raw_fd_ostreamllvm::outs ()
 This returns a reference to a raw_fd_ostream for standard output.
 
raw_fd_ostreamllvm::errs ()
 This returns a reference to a raw_ostream for standard error.
 
raw_ostreamllvm::nulls ()
 This returns a reference to a raw_ostream which simply discards output.
 
raw_ostream & llvm::operator<< (raw_ostream &OS, const indent &Indent)
 
Error llvm::writeToOutput (StringRef OutputFileName, std::function< Error(raw_ostream &)> Write)
 This helper creates an output stream and then passes it to Write.
 
raw_ostream & llvm::operator<< (raw_ostream &OS, std::nullopt_t)
 
template<typename T , typename = decltype(std::declval<raw_ostream &>() << std::declval<const T &>())>
raw_ostream & llvm::operator<< (raw_ostream &OS, const std::optional< T > &O)