Home | History | Annotate | Download | only in Support

Lines Matching defs:raw_ostream

1 //===--- raw_ostream.h - Raw output stream ----------------------*- C++ -*-===//
10 // This file defines the raw_ostream class.
38 class raw_ostream {
40 void operator=(const raw_ostream &) = delete;
41 raw_ostream(const raw_ostream &) = delete;
54 /// If buffered, then the raw_ostream owns the buffer if (BufferMode ==
83 explicit raw_ostream(bool unbuffered = false)
89 virtual ~raw_ostream();
139 raw_ostream &operator<<(char C) {
146 raw_ostream &operator<<(unsigned char C) {
153 raw_ostream &operator<<(signed char C) {
160 raw_ostream &operator<<(StringRef Str) {
175 raw_ostream &operator<<(const char *Str) {
182 raw_ostream &operator<<(const std::string &Str) {
187 raw_ostream &operator<<(const llvm::SmallVectorImpl<char> &Str) {
191 raw_ostream &operator<<(unsigned long N);
192 raw_ostream &operator<<(long N);
193 raw_ostream &operator<<(unsigned long long N);
194 raw_ostream &operator<<(long long N);
195 raw_ostream &operator<<(const void *P);
196 raw_ostream &operator<<(unsigned int N) {
200 raw_ostream &operator<<(int N) {
204 raw_ostream &operator<<(double N);
207 raw_ostream &write_hex(unsigned long long N);
211 raw_ostream &write_escaped(StringRef Str, bool UseHexEscapes = false);
213 raw_ostream &write(unsigned char C);
214 raw_ostream &write(const char *Ptr, size_t Size);
217 raw_ostream &operator<<(const format_object_base &Fmt);
220 raw_ostream &operator<<(const FormattedString &);
223 raw_ostream &operator<<(const FormattedNumber &);
226 raw_ostream &indent(unsigned NumSpaces);
235 virtual raw_ostream &changeColor(enum Colors Color,
246 virtual raw_ostream &resetColor() { return *this; }
249 virtual raw_ostream &reverseColor() { return *this; }
287 /// Use the provided buffer as the raw_ostream buffer. This is intended for
320 class raw_pwrite_stream : public raw_ostream {
325 : raw_ostream(Unbuffered) {}
342 /// A raw_ostream that writes to a file descriptor.
356 /// See raw_ostream::write_impl.
401 raw_ostream &changeColor(enum Colors colors, bool bold=false,
403 raw_ostream &resetColor() override;
405 raw_ostream &reverseColor() override;
420 /// time when this raw_ostream's destructor is called, report_fatal_error is
433 /// This returns a reference to a raw_ostream for standard output. Use it like:
435 raw_ostream &outs();
437 /// This returns a reference to a raw_ostream for standard error. Use it like:
439 raw_ostream &errs();
441 /// This returns a reference to a raw_ostream which simply discards output.
442 raw_ostream &nulls();
448 /// A raw_ostream that writes to an std::string. This is a simple adaptor
450 class raw_string_ostream : public raw_ostream {
453 /// See raw_ostream::write_impl.
472 /// A raw_ostream that writes to an SmallVector or SmallString. This is a
480 /// See raw_ostream::write_impl.
504 /// A raw_ostream that discards all output.
506 /// See raw_ostream::write_impl.
520 raw_ostream &OS;
524 buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}