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.
44 class raw_ostream {
57 /// If buffered, then the raw_ostream owns the buffer if (BufferMode ==
86 explicit raw_ostream(bool unbuffered = false)
92 raw_ostream(const raw_ostream &) = delete;
93 void operator=(const raw_ostream &) = delete;
95 virtual ~raw_ostream();
145 raw_ostream &operator<<(char C) {
152 raw_ostream &operator<<(unsigned char C) {
159 raw_ostream &operator<<(signed char C) {
166 raw_ostream &operator<<(StringRef Str) {
181 raw_ostream &operator<<(const char *Str) {
188 raw_ostream &operator<<(const std::string &Str) {
193 raw_ostream &operator<<(const SmallVectorImpl<char> &Str) {
197 raw_ostream &operator<<(unsigned long N);
198 raw_ostream &operator<<(long N);
199 raw_ostream &operator<<(unsigned long long N);
200 raw_ostream &operator<<(long long N);
201 raw_ostream &operator<<(const void *P);
203 raw_ostream &operator<<(unsigned int N) {
207 raw_ostream &operator<<(int N) {
211 raw_ostream &operator<<(double N);
214 raw_ostream &write_hex(unsigned long long N);
218 raw_ostream &write_uuid(const uuid_t UUID);
222 raw_ostream &write_escaped(StringRef Str, bool UseHexEscapes = false);
224 raw_ostream &write(unsigned char C);
225 raw_ostream &write(const char *Ptr, size_t Size);
228 raw_ostream &operator<<(const format_object_base &Fmt);
231 raw_ostream &operator<<(const FormattedString &);
234 raw_ostream &operator<<(const FormattedNumber &);
237 raw_ostream &operator<<(const formatv_object_base &);
240 raw_ostream &operator<<(const FormattedBytes &);
243 raw_ostream &indent(unsigned NumSpaces);
252 virtual raw_ostream &changeColor(enum Colors Color,
263 virtual raw_ostream &resetColor() { return *this; }
266 virtual raw_ostream &reverseColor() { return *this; }
304 /// Use the provided buffer as the raw_ostream buffer. This is intended for
337 class raw_pwrite_stream : public raw_ostream {
342 : raw_ostream(Unbuffered) {}
359 /// A raw_ostream that writes to a file descriptor.
373 /// See raw_ostream::write_impl.
417 raw_ostream &changeColor(enum Colors colors, bool bold=false,
419 raw_ostream &resetColor() override;
421 raw_ostream &reverseColor() override;
436 /// time when this raw_ostream's destructor is called, report_fatal_error is
449 /// This returns a reference to a raw_ostream for standard output. Use it like:
451 raw_ostream &outs();
453 /// This returns a reference to a raw_ostream for standard error. Use it like:
455 raw_ostream &errs();
457 /// This returns a reference to a raw_ostream which simply discards output.
458 raw_ostream &nulls();
464 /// A raw_ostream that writes to an std::string. This is a simple adaptor
466 class raw_string_ostream : public raw_ostream {
469 /// See raw_ostream::write_impl.
488 /// A raw_ostream that writes to an SmallVector or SmallString. This is a
496 /// See raw_ostream::write_impl.
521 /// A raw_ostream that discards all output.
523 /// See raw_ostream::write_impl.
537 raw_ostream &OS;
541 buffer_ostream(raw_ostream &OS) : raw_svector_ostream(Buffer), OS(OS) {}