diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 19:53:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-21 19:53:10 +0000 |
commit | 48534b31d8bc5a68ba152fcdb905bf266def5268 (patch) | |
tree | acbfaacfda9e837cb06f1bf1f25767236bde559b /include/llvm/Support/raw_ostream.h | |
parent | cf891f4dd40eac746e861e7a700f56555b7e8349 (diff) | |
download | llvm-48534b31d8bc5a68ba152fcdb905bf266def5268.tar.gz llvm-48534b31d8bc5a68ba152fcdb905bf266def5268.tar.bz2 llvm-48534b31d8bc5a68ba152fcdb905bf266def5268.tar.xz |
Clear raw_fd_ostream error string on success and explain behavior in
documentation.
Add C++ header marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index 5ab0988d3e..af53477cea 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -1,4 +1,4 @@ -//===--- raw_ostream.h - Raw output stream --------------------------------===// +//===--- raw_ostream.h - Raw output stream ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -152,9 +152,10 @@ class raw_fd_ostream : public raw_ostream { int FD; bool ShouldClose; public: - /// raw_fd_ostream - Open the specified file for writing. If an error occurs, - /// information about the error is put into ErrorInfo, and the stream should - /// be immediately destroyed. + /// raw_fd_ostream - Open the specified file for writing. If an + /// error occurs, information about the error is put into ErrorInfo, + /// and the stream should be immediately destroyed; the string will + /// be empty if no error occurred. raw_fd_ostream(const char *Filename, std::string &ErrorInfo); /// raw_fd_ostream ctor - FD is the file descriptor that this writes to. If |