/// has_error - Return the value of the flag in this raw_ostream indicating
/// whether an output error has been encountered.
/// has_error - Return the value of the flag in this raw_ostream indicating
/// whether an output error has been encountered.
bool has_error() const {
return Error;
}
/// clear_error - Set the flag read by has_error() to false. If the error
/// flag is set at the time when this raw_ostream's destructor is called,
bool has_error() const {
return Error;
}
/// clear_error - Set the flag read by has_error() to false. If the error
/// flag is set at the time when this raw_ostream's destructor is called,
// If we're supposed to be buffered but haven't actually gotten around
// to allocating the buffer yet, return the value that would be used.
if (BufferMode != Unbuffered && OutBufStart == 0)
// If we're supposed to be buffered but haven't actually gotten around
// to allocating the buffer yet, return the value that would be used.
if (BufferMode != Unbuffered && OutBufStart == 0)
// Inline fast path, particularly for strings with a known length.
size_t Size = Str.size();
// Inline fast path, particularly for strings with a known length.
size_t Size = Str.size();
// Inline fast path, particulary for constant strings where a sufficiently
// smart compiler will simplify strlen.
// Inline fast path, particulary for constant strings where a sufficiently
// smart compiler will simplify strlen.
}
raw_ostream &operator<<(const std::string &Str) {
// Avoid the fast path, it would only increase code size for a marginal win.
}
raw_ostream &operator<<(const std::string &Str) {
// Avoid the fast path, it would only increase code size for a marginal win.
raw_ostream &operator<<(long long N);
raw_ostream &operator<<(const void *P);
raw_ostream &operator<<(unsigned int N) {
raw_ostream &operator<<(long long N);
raw_ostream &operator<<(const void *P);
raw_ostream &operator<<(unsigned int N) {
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// str - Flushes the stream contents to the target vector and return a
/// StringRef for the vector contents.
StringRef str();
/// str - Flushes the stream contents to the target vector and return a
/// StringRef for the vector contents.
StringRef str();
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.
/// current_pos - Return the current position within the stream, not
/// counting the bytes currently in the buffer.