Lines Matching defs:raw_ostream

1 //===--- raw_ostream.cpp - Implement the raw_ostream classes --------------===//
14 #include "llvm/Support/raw_ostream.h"
61 raw_ostream::~raw_ostream() {
62 // raw_ostream's subclasses should take care to flush the buffer
65 "raw_ostream destructor called with non-empty buffer!");
72 void raw_ostream::handle() {}
74 size_t raw_ostream::preferred_buffer_size() const {
79 void raw_ostream::SetBuffered() {
88 void raw_ostream::SetBufferAndMode(char *BufferStart, size_t Size,
107 raw_ostream &raw_ostream::operator<<(unsigned long N) {
123 raw_ostream &raw_ostream::operator<<(long N) {
133 raw_ostream &raw_ostream::operator<<(unsigned long long N) {
149 raw_ostream &raw_ostream::operator<<(long long N) {
159 raw_ostream &raw_ostream::write_hex(unsigned long long N) {
177 raw_ostream &raw_ostream::write_escaped(StringRef Str,
219 raw_ostream &raw_ostream::operator<<(const void *P) {
225 raw_ostream &raw_ostream::operator<<(double N) {
268 void raw_ostream::flush_nonempty() {
275 raw_ostream &raw_ostream::write(unsigned char C) {
295 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) {
337 void raw_ostream::copy_to_buffer(const char *Ptr, size_t Size) {
357 raw_ostream &raw_ostream::operator<<(const format_object_base &Fmt) {
398 raw_ostream &raw_ostream::indent(unsigned NumSpaces) {
469 : raw_ostream(unbuffered), FD(fd),
509 // destructing raw_ostream objects which may have errors.
540 // raw_ostream isn't designed to do non-blocking I/O. However, some
544 // don't use O_NONBLOCK file descriptors with raw_ostream.
601 return raw_ostream::preferred_buffer_size();
605 raw_ostream &raw_fd_ostream::changeColor(enum Colors colors, bool bold,
621 raw_ostream &raw_fd_ostream::resetColor() {
634 raw_ostream &raw_fd_ostream::reverseColor() {
659 /// outs() - This returns a reference to a raw_ostream for standard output.
661 raw_ostream &llvm::outs() {
669 /// errs() - This returns a reference to a raw_ostream for standard error.
671 raw_ostream &llvm::errs() {
677 /// nulls() - This returns a reference to a raw_ostream which discards output.
678 raw_ostream &llvm::nulls() {
701 // buffer for the raw_ostream. We guarantee that the raw_ostream buffer is
703 // capacity. This allows raw_ostream to write directly into the correct place,
708 // least 128 bytes free; raw_ostream itself only requires 64, but we want to
768 // ~raw_ostream asserts that the buffer is empty. This isn't necessary