Lines Matching defs:raw_ostream

1 //===--- raw_ostream.cpp - Implement the raw_ostream classes --------------===//
13 #include "llvm/Support/raw_ostream.h"
68 const raw_ostream::Colors raw_ostream::BLACK;
69 const raw_ostream::Colors raw_ostream::RED;
70 const raw_ostream::Colors raw_ostream::GREEN;
71 const raw_ostream::Colors raw_ostream::YELLOW;
72 const raw_ostream::Colors raw_ostream::BLUE;
73 const raw_ostream::Colors raw_ostream::MAGENTA;
74 const raw_ostream::Colors raw_ostream::CYAN;
75 const raw_ostream::Colors raw_ostream::WHITE;
76 const raw_ostream::Colors raw_ostream::SAVEDCOLOR;
77 const raw_ostream::Colors raw_ostream::RESET;
79 raw_ostream::~raw_ostream() {
80 // raw_ostream's subclasses should take care to flush the buffer
83 "raw_ostream destructor called with non-empty buffer!");
89 size_t raw_ostream::preferred_buffer_size() const {
94 void raw_ostream::SetBuffered() {
103 void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size,
122 raw_ostream &raw_ostream::operator<<(unsigned long N) {
127 raw_ostream &raw_ostream::operator<<(long N) {
132 raw_ostream &raw_ostream::operator<<(unsigned long long N) {
137 raw_ostream &raw_ostream::operator<<(long long N) {
142 raw_ostream &raw_ostream::write_hex(unsigned long long N) {
147 raw_ostream &raw_ostream::operator<<(Colors C) {
155 raw_ostream &raw_ostream::write_uuid(const uuid_t UUID) {
165 raw_ostream &raw_ostream::write_escaped(StringRef Str,
205 raw_ostream &raw_ostream::operator<<(const void *P) {
210 raw_ostream &raw_ostream::operator<<(double N) {
215 void raw_ostream::flush_nonempty() {
222 raw_ostream &raw_ostream::write(unsigned char C) {
242 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) {
285 void raw_ostream::copy_to_buffer(const char *Ptr, size_t Size) {
305 raw_ostream &raw_ostream::operator<<(const format_object_base &Fmt) {
345 raw_ostream &raw_ostream::operator<<(const formatv_object_base &Obj) {
351 raw_ostream &raw_ostream::operator<<(const FormattedString &FS) {
379 raw_ostream &raw_ostream::operator<<(const FormattedNumber &FN) {
402 raw_ostream &raw_ostream::operator<<(const FormattedBytes &FB) {
475 static raw_ostream &write_padding(raw_ostream &OS, unsigned NumChars) {
496 raw_ostream &raw_ostream::indent(unsigned NumSpaces) {
501 raw_ostream &raw_ostream::write_zeros(unsigned NumZeros) {
505 void raw_ostream::anchor() {}
523 "Cannot make a raw_ostream from a read-only descriptor!");
631 // destructing raw_ostream objects which may have errors.
718 // raw_ostream isn't designed to do non-blocking I/O. However, some
722 // don't use O_NONBLOCK file descriptors with raw_ostream.
784 return raw_ostream::preferred_buffer_size();
800 return raw_ostream::preferred_buffer_size();
804 raw_ostream &raw_fd_ostream::changeColor(enum Colors colors, bool bold,
824 raw_ostream &raw_fd_ostream::resetColor() {
840 raw_ostream &raw_fd_ostream::reverseColor() {
870 /// outs() - This returns a reference to a raw_ostream for standard output.
872 raw_ostream &llvm::outs() {
880 /// errs() - This returns a reference to a raw_ostream for standard error.
882 raw_ostream &llvm::errs() {
888 /// nulls() - This returns a reference to a raw_ostream which discards output.
889 raw_ostream &llvm::nulls() {
927 // ~raw_ostream asserts that the buffer is empty. This isn't necessary